Fix FRO detection
This commit is contained in:
parent
1d6f62e319
commit
08fb65cb77
|
@ -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 */
|
/* Test whether a floating-point register value is a reserved operand */
|
||||||
static int cpuFloatReservedOne(int32_t bits) {
|
static int cpuFloatReservedOne(int32_t bits) {
|
||||||
int32_t e = bits >> 23 & 0xFF;
|
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 */
|
/* Test whether floating-point register values are reserved operands */
|
||||||
|
|
Loading…
Reference in New Issue