trechkpt

Transaction Recheckpoint

trechkpt

Updates the transaction checkpoint.

Encoding

Binary Layout
31
0:5
/
6:10
/
11:15
/
16:20
1006
21:30
1
31
 
Format X-form
Opcode 0x7C0007DD

Operands

Registers Altered

LR, CTR, CR, FPSCR, XER, MSR, SRR0, SRR1, TAR

Related

More in Transactional Memory

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 Recheckpoint. Restores the transactional register state from the checkpoint saved by a prior tbegin. Used to restart a transaction after a non-transactional abort.

Operation

if Suspended() then
  Restore_Checkpoint()
  Resume_Transaction()

Programming Note

The trechkpt instruction is used to restore the transactional register state from a previous checkpoint, allowing a transaction to be restarted after a non-transactional abort. It should only be used within a transactional region and requires that the transaction was previously suspended. Ensure proper ordering of instructions to maintain consistency and avoid data corruption.