forked from Imagelibrary/rtems
sparc: Restore npc when returning from the syscall_lazy_fp_switch trap
If the floating point trap occurred in a delay slot it is not certain that npc will be equal to pc + 4.
This commit is contained in:
committed by
Daniel Hellstrom
parent
6695d02bf0
commit
59a0541c5b
@@ -245,7 +245,7 @@ SYM(syscall_lazy_fp_switch):
|
||||
|
||||
/* Now, retry the floating point instruction with PSR[EF] == 1 */
|
||||
jmp %l1
|
||||
rett %l1 + 4
|
||||
rett %l2
|
||||
|
||||
.Lillegal_use_of_floating_point_unit:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user