mfpvr

Move From Processor Version Register

mfpvr RT

Reads the PVR (Processor ID).

Encoding

Binary Layout
31
0:5
RT
6:10
287
11:20
339
21:30
/
31
 
Format X-form
Opcode 0x7C1F42A6
Extension Privileged

Operands

  • RT
    Target

Example

mfpvr r3

Registers Altered

PVR

Related

More in Privileged

Reference

Description

Move From Processor Version Register. Extended mnemonic for MFSPR (mfspr RT,287). Copies the Processor Version Register (PVR) into register RT. The PVR contains the processor version and revision numbers.

Operation

RT ← PVR

Programming Note

The mfpvr instruction is used to retrieve the Processor Version Register (PVR), which contains information about the processor's version and revision. This instruction is commonly used for software that needs to detect or adapt to specific processor features or versions. It operates at user privilege level, so no special privileges are required. There are no alignment requirements for this instruction.