From 6d67589736a1f1e3e7d6cbeda7eb200bf52adbfe Mon Sep 17 00:00:00 2001 From: OBattler Date: Thu, 26 Feb 2026 21:58:00 +0100 Subject: [PATCH] OPTi 895: Remove the cache forcing that should not have been committed and disable logging. --- src/chipset/opti895.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/chipset/opti895.c b/src/chipset/opti895.c index 7be1d0bd1..059e8da8a 100644 --- a/src/chipset/opti895.c +++ b/src/chipset/opti895.c @@ -44,7 +44,6 @@ typedef struct opti895_t { static uint8_t masks[0x10] = { 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xe3, 0xff, 0xe3, 0xff, 0x00, 0xff, 0xff, 0xff }; -#define ENABLE_OPTI895_LOG 1 #ifdef ENABLE_OPTI895_LOG int opti895_do_log = ENABLE_OPTI895_LOG; @@ -250,9 +249,7 @@ opti895_read(uint16_t addr, void *priv) if (((dev->idx >= 0x20) && (dev->idx <= 0x2f) && (dev->idx != 0x2c)) || ((dev->idx >= 0xe0) && (dev->idx <= 0xef))) { ret = dev->regs[dev->idx]; - if (dev->idx == 0x21) - ret |= 0x1c; - else if (dev->idx == 0x28) + if (dev->idx == 0x28) ret |= 0x18; else if (dev->idx == 0xe0) ret = (ret & 0xf6) | (in_smm ? 0x00 : 0x08) | !!dev->forced_green;