[PARISC] Fix floating point invalid exception trap handler
Fix our trap handler to issue the correct floating point exception for both types of invalid trap. Signed-off-by: James Bottomley <jejb@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
This commit is contained in:
committed by
Kyle McMartin
parent
c475eea292
commit
370361f884
@@ -337,6 +337,7 @@ decode_fpu(unsigned int Fpu_register[], unsigned int trap_counts[])
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case INVALIDEXCEPTION:
|
case INVALIDEXCEPTION:
|
||||||
|
case OPC_2E_INVALIDEXCEPTION:
|
||||||
update_trap_counts(Fpu_register, aflags, bflags, trap_counts);
|
update_trap_counts(Fpu_register, aflags, bflags, trap_counts);
|
||||||
return SIGNALCODE(SIGFPE, FPE_FLTINV);
|
return SIGNALCODE(SIGFPE, FPE_FLTINV);
|
||||||
case DIVISIONBYZEROEXCEPTION:
|
case DIVISIONBYZEROEXCEPTION:
|
||||||
|
Reference in New Issue
Block a user