target-mips: Add missing calls to synchronise SoftFloat status
commitbb962386b82c1b0e9e12fdb6b9bb62106bf1f822
authorMaciej W. Rozycki <macro@codesourcery.com>
Tue, 2 Dec 2014 17:02:38 +0000 (2 17:02 +0000)
committerLeon Alrae <leon.alrae@imgtec.com>
Tue, 16 Dec 2014 12:45:20 +0000 (16 12:45 +0000)
tree3eeb6545f0a1f96fd22a448b14978a080e08d9b1
parent74797f40dc3e17633fea614f08c828020f755b28
target-mips: Add missing calls to synchronise SoftFloat status

Add missing calls to synchronise the SoftFloat status with the CP1.FSCR:

+ for the rounding and flush-to-zero modes upon processor reset,

+ for the flush-to-zero mode on FSCR updates through the GDB stub.

Refactor code accordingly and remove the redundant RESTORE_ROUNDING_MODE
macro.

Signed-off-by: Thomas Schwinge <thomas@codesourcery.com>
Signed-off-by: Maciej W. Rozycki <macro@codesourcery.com>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
target-mips/cpu.h
target-mips/gdbstub.c
target-mips/op_helper.c
target-mips/translate.c