tsr

Transaction Suspend or Resume

tsr L

Suspends or resumes a transaction based on L.

Details

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.

Pseudocode 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.

Example

tsr 0

Encoding

Binary Layout
31
0
L
6
/
11
/
16
750
21
/
31
 
Format X-form
Opcode 0x7C0005DE
Extension Transactional Memory
Registers Altered MSR

Operands

  • L
    1=Suspend