LEON2/LEON3 are both sparcv8, which does not support branch hints
(bne,pn) nor the return instruction.
Checked with a build for sparcv8-linux-gnu targetting leon. I also
checked some cancellation tests with qemu-system (targeting LEON3).
Acked-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
__syscall_do_cancel() */
ld [%i0], %g2
andcc %g2, TCB_CANCELED_BITMASK, %g0
+#ifdef __sparcv9
bne,pn %icc, 2f
+#else
+ bne 2f
+#endif
/* Issue a 6 argument syscall. */
mov %i1, %g1
mov %i2, %o0
sub %g0, %o0, %o0
1:
mov %o0, %i0
+#ifdef __sparcv9
return %i7+8
nop
+#else
+ jmp %i7+8
+ restore
+#endif
2:
call __syscall_do_cancel, 0