mftar
Move From Target Address Register
mftar RT
Reads the TAR into a GPR.
Encoding
Binary Layout
31
0:5
RT
6:10
129
11:20
339
21:30
/
31
Operands
-
RT
Target
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
Move From Target Address Register. Extended mnemonic for MFSPR (mfspr RT,815). Copies the Target Address Register (TAR) into register RT.
Operation
RT ← TAR
Programming Note
The mftar instruction is used to copy the value of the Target Address Register (TAR) into a general-purpose register. This is typically done in contexts where precise control over branch targets or speculative execution is required. Ensure that the destination register RT is properly aligned and accessible at the privilege level executing the instruction, as accessing certain registers may require supervisor or hypervisor privileges.