From 08fb65cb7754eacba403c2a654e5a783c29b6b70 Mon Sep 17 00:00:00 2001 From: Guy Perfect Date: Sun, 13 Oct 2024 21:35:48 -0500 Subject: [PATCH] Fix FRO detection --- core/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cpu.c b/core/cpu.c index 4f334f5..261ac59 100644 --- a/core/cpu.c +++ b/core/cpu.c @@ -880,7 +880,7 @@ static int cpuFloatCommon(VB *sim, double value, int32_t *bits) { /* Test whether a floating-point register value is a reserved operand */ static int cpuFloatReservedOne(int32_t bits) { int32_t e = bits >> 23 & 0xFF; - return e ? (bits & 0x7FFFFFFF) != 0 : e == 0xFF; + return e == 0 ? (bits & 0x7FFFFFFF) != 0 : e == 0xFF; } /* Test whether floating-point register values are reserved operands */