From 7f4fdf09b5e9cd7cb9ef74e8af3e7401c9711759 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 7 Aug 2023 03:30:23 +0200 Subject: [PATCH] Added two TODO comments in chipset/opti895.c. --- src/chipset/opti895.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chipset/opti895.c b/src/chipset/opti895.c index 8bc93702f..512c4fc82 100644 --- a/src/chipset/opti895.c +++ b/src/chipset/opti895.c @@ -155,6 +155,7 @@ opti895_write(uint16_t addr, uint8_t val, void *priv) dev->regs[dev->idx] = val; opti895_log("dev->regs[%04x] = %08x\n", dev->idx, val); + /* TODO: Registers 0x30-0x3F for OPTi 802GP and 898. */ switch (dev->idx) { case 0x21: cpu_cache_ext_enabled = !!(dev->regs[0x21] & 0x10); @@ -213,12 +214,14 @@ opti895_read(uint16_t addr, void *priv) ret = dev->regs[dev->idx]; break; case 0x24: + /* TODO: Registers 0x30-0x3F for OPTi 802GP and 898. */ if (((dev->idx >= 0x20) && (dev->idx <= 0x2f)) || ((dev->idx >= 0xe0) && (dev->idx <= 0xef))) { ret = dev->regs[dev->idx]; if (dev->idx == 0xe0) ret = (ret & 0xf6) | (in_smm ? 0x00 : 0x08) | !!dev->forced_green; } break; + case 0xe1: case 0xe2: ret = dev->scratch[addr - 0xe1];