Fix FRO detection

This commit is contained in:
Guy Perfect 2024-10-13 21:35:48 -05:00
parent 1d6f62e319
commit 08fb65cb77
1 changed files with 1 additions and 1 deletions

View File

@ -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 */