tsr
Transaction Suspend or Resume
tsr L
Suspends or resumes a transaction based on L.
Encoding
Binary Layout
31
0:5
L
6:10
/
11:15
/
16:20
750
21:30
1
31
Operands
-
L
1=Suspend
Reference
Not in Power ISA v3.1C
Description
Not in Power ISA v3.1C: Transactional Memory has been removed from the architecture (Appendix A), and its opcode map lists this opcode as reserved. The encoding shown is binutils' (opcodes/ppc-opc.c), not the manual's. Transaction Suspend or Resume. Suspends an active transaction (L=0) or resumes a suspended transaction (L=1). The transactional state is preserved across the suspend/resume boundary.
Operation
if L = 0 then
Suspend_Transaction()
else
Resume_Transaction()
Programming Note
The tsr instruction is used to either suspend or resume a transaction based on the value of the L bit. Ensure that the transactional state is properly managed to avoid data corruption. This instruction operates at the privilege level of the executing context and may raise exceptions if used incorrectly, such as attempting to resume a non-existent suspended transaction.