From a7e43ae601b000d27e955d32a3085c0f995afb88 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 19 Jun 2020 13:54:08 +0200 Subject: [PATCH] Port ED now also runs all the timers on the recompiler if it has no handlers, like port EB. --- src/io.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/io.c b/src/io.c index a9f41f3ad..b09624064 100644 --- a/src/io.c +++ b/src/io.c @@ -333,7 +333,7 @@ outb(uint16_t port, uint8_t val) if (!found) { sub_cycles(io_delay); #ifdef USE_DYNAREC - if (cpu_use_dynarec && (port == 0xeb)) + if (cpu_use_dynarec && ((port == 0xeb) || (port == 0xed))) update_tsc(); #endif } @@ -428,7 +428,7 @@ outw(uint16_t port, uint16_t val) if (!found) { sub_cycles(io_delay); #ifdef USE_DYNAREC - if (cpu_use_dynarec && (port == 0xeb)) + if (cpu_use_dynarec && ((port == 0xeb) || (port == 0xed))) update_tsc(); #endif } @@ -502,8 +502,7 @@ inl(uint16_t port) if (!found) sub_cycles(io_delay); - if (in_smm) - io_log("[%04X:%08X] (%i, %i, %04i) in l(%04X) = %08X\n", CS, cpu_state.pc, in_smm, found, qfound, port, ret); + io_log("[%04X:%08X] (%i, %i, %04i) in l(%04X) = %08X\n", CS, cpu_state.pc, in_smm, found, qfound, port, ret); return ret; } @@ -557,7 +556,7 @@ outl(uint16_t port, uint32_t val) if (!found) { sub_cycles(io_delay); #ifdef USE_DYNAREC - if (cpu_use_dynarec && (port == 0xeb)) + if (cpu_use_dynarec && ((port == 0xeb) || (port == 0xed))) update_tsc(); #endif }