mftar
Move From Target Address Register
mftar RT
Reads the TAR into a GPR.
Details
Move From Target Address Register. Extended mnemonic for MFSPR (mfspr RT,815). Copies the Target Address Register (TAR) into register RT.
Pseudocode 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.
Example
mftar r3
Encoding
Binary Layout
31
0
RT
6
129
11
339
21
/
31
Operands
-
RT
Target