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
/
31
Operands
-
L
1=Suspend
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
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.