From b92d45125ec290f83045e0603c8e951d229deb03 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 1 Feb 2022 19:07:22 +0100 Subject: [PATCH] Temporarily reverted that FPU clock cycles change. --- src/cpu/386.c | 4 ++++ src/cpu/386_dynarec.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/cpu/386.c b/src/cpu/386.c index 2358fd646..1340b1479 100644 --- a/src/cpu/386.c +++ b/src/cpu/386.c @@ -81,6 +81,7 @@ x386_log(const char *fmt, ...) #define OP_TABLE(name) ops_ ## name +#if 0 #define CLOCK_CYCLES(c) \ {\ if (fpu_cycles > 0) {\ @@ -92,6 +93,9 @@ x386_log(const char *fmt, ...) cycles -= (c);\ }\ } +#else +#define CLOCK_CYCLES(c) cycles -= (c) +#endif #define CLOCK_CYCLES_FPU(c) cycles -= (c) #define CONCURRENCY_CYCLES(c) fpu_cycles = (c) diff --git a/src/cpu/386_dynarec.c b/src/cpu/386_dynarec.c index 88a95637c..bb61cce88 100644 --- a/src/cpu/386_dynarec.c +++ b/src/cpu/386_dynarec.c @@ -267,6 +267,7 @@ static void prefetch_flush() #define OP_TABLE(name) ops_ ## name +#if 0 #define CLOCK_CYCLES(c) \ {\ if (fpu_cycles > 0) {\ @@ -278,6 +279,9 @@ static void prefetch_flush() cycles -= (c);\ }\ } +#else +#define CLOCK_CYCLES(c) cycles -= (c) +#endif #define CLOCK_CYCLES_FPU(c) cycles -= (c) #define CONCURRENCY_CYCLES(c) fpu_cycles = (c) #define CLOCK_CYCLES_ALWAYS(c) cycles -= (c)