diff --git a/src/chipset/intel_82335.c b/src/chipset/intel_82335.c index 68efe84de..6a3c5309a 100644 --- a/src/chipset/intel_82335.c +++ b/src/chipset/intel_82335.c @@ -100,9 +100,9 @@ intel_82335_write(uint16_t addr, uint16_t val, void *priv) if (!extended_granuality_enabled) { - mem_set_mem_state_both(0xa0000, 0x20000, (dev->reg_22 & (0x04 << 8)) ? enabled_shadow : disabled_shadow); + mem_set_mem_state_both(0xa0000, 0x20000, (dev->reg_22 & (0x04 << 8)) ? determine_video_ram_write_access : disabled_shadow); mem_set_mem_state_both(0xc0000, 0x20000, (dev->reg_22 & (0x02 << 8)) ? enabled_shadow : disabled_shadow); - mem_set_mem_state_both(0xe0000, 0x20000, (dev->reg_22 & 0x01) ? determine_video_ram_write_access : disabled_shadow); + mem_set_mem_state_both(0xe0000, 0x20000, (dev->reg_22 & 0x01) ? ro_shadow : disabled_shadow); } break;