The SiS 4xx chipset now no longer allow modifying the RAM amount bits of register 0x00, fixes #2306.
This commit is contained in:
@@ -176,6 +176,8 @@ sis_85c4xx_out(uint16_t port, uint8_t val, void *priv)
|
|||||||
valxor = val ^ dev->regs[rel_reg];
|
valxor = val ^ dev->regs[rel_reg];
|
||||||
if (rel_reg == 0x19)
|
if (rel_reg == 0x19)
|
||||||
dev->regs[rel_reg] &= ~val;
|
dev->regs[rel_reg] &= ~val;
|
||||||
|
else if (rel_reg == 0x00)
|
||||||
|
dev->regs[rel_reg] = (dev->regs[rel_reg] & 0x1f) | (val & 0xe0);
|
||||||
else
|
else
|
||||||
dev->regs[rel_reg] = val;
|
dev->regs[rel_reg] = val;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user