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:
Daniel Cederman
2018-07-12 09:15:55 +02:00
committed by Daniel Hellstrom
parent 6695d02bf0
commit 59a0541c5b

View File

@@ -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: