Fix STPC CPU identification

Let port 22h/23h registers >= 0xc0 fall through to the Cyrix port 22h/23h code in cpu.c
This commit is contained in:
RichardG867
2020-07-07 15:38:34 -03:00
parent eb955eecf9
commit 5e18163b2e
2 changed files with 6 additions and 4 deletions

View File

@@ -492,6 +492,8 @@ stpc_reg_read(uint16_t addr, void *priv)
if (addr == 0x22)
ret = dev->reg_offset;
else if (dev->reg_offset >= 0xc0)
return 0xff; /* Cyrix CPU registers: let the CPU code handle those */
else
ret = dev->regs[dev->reg_offset];