From ead818c5bdb66f2b65cef7097f63e5398abc37ff Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 5 Sep 2021 23:20:58 +0200 Subject: [PATCH] Disabled 286/386 prefetch queue timings emulation on 486+, improves performance. --- src/cpu/386_dynarec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cpu/386_dynarec.c b/src/cpu/386_dynarec.c index a030ac915..15c33100d 100644 --- a/src/cpu/386_dynarec.c +++ b/src/cpu/386_dynarec.c @@ -196,6 +196,9 @@ static void prefetch_run(int instr_cycles, int bytes, int modrm, int reads, int { int mem_cycles = reads*cpu_cycles_read + reads_l*cpu_cycles_read_l + writes*cpu_cycles_write + writes_l*cpu_cycles_write_l; + if (is486) + return; + if (instr_cycles < mem_cycles) instr_cycles = mem_cycles;