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
 
Format XFX-form
Opcode 0x7C0FCAA6
Extension Base

Operands

  • RT
    Target

Example

mftar r3

Registers Altered

TAR

Related

More in Base

Reference

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.