Fixed 440GX ID without AGP and the FDC now causes the CPU to run the timers on MSR read when the recompiler is used.

This commit is contained in:
OBattler
2020-07-09 19:28:47 +02:00
parent 0e15180952
commit 5a862e9551
2 changed files with 5 additions and 1 deletions

View File

@@ -1571,7 +1571,7 @@ static void
regs[0x7a] = (info->local >> 8) & 0xff;
dev->max_func = (regs[0x7a] & 0x02) ? 0 : 1;
regs[0x02] = 0xa0; regs[0x03] = 0x71; /* 82443GX */
regs[0x02] = (regs[0x7a] & 0x02) ? 0xa2 : 0xa0; regs[0x03] = 0x71; /* 82443GX */
regs[0x06] = (regs[0x7a] & 0x02) ? 0x00 : 0x10;
regs[0x08] = 0x02;
regs[0x10] = 0x08;

View File

@@ -1350,6 +1350,10 @@ fdc_read(uint16_t addr, void *priv)
break;
case 4: /*Status*/
ret = fdc->stat;
#ifdef USE_DYNAREC
if (cpu_use_dynarec)
update_tsc();
#endif
break;
case 5: /*Data*/
if ((fdc->stat & 0xf0) == 0xf0) {