Expand description
COP0 register numbers, by name.
Named constants rather than an enum: the encoding carries a raw 5-bit field and every value 0..=31 is expressible, so an enum would need a fallible conversion on the hot path for no benefit.
Constantsยง
- BAD_
VADDR - Faulting virtual address.
- CACHE_
ERR - Cache error (VR4200 compatibility; unused by VR4300 hardware).
- CAUSE
- Exception cause.
- COMPARE
- Timer-interrupt comparand.
- CONFIG
- Cache and endianness configuration.
- CONTEXT
- Page-table base plus the faulting VPN2 (32-bit refill).
- COUNT
- Free-running cycle counter, incrementing at half
PClock. - ENTRY_
HI - TLB VPN2 + ASID.
- ENTRY_
LO0 - Even-page TLB entry.
- ENTRY_
LO1 - Odd-page TLB entry.
- EPC
- Exception program counter.
- ERROR_
EPC - Error exception program counter.
- INDEX
- TLB entry index for
TLBR/TLBWI. - LL_ADDR
- Physical address of the last
LL(diagnostic only). - PAGE_
MASK - TLB page-size mask.
- PERR
- Parity error (VR4200 compatibility; unused by VR4300 hardware).
- PRID
- Processor revision identifier.
- RANDOM
- Free-running TLB replacement counter.
- STATUS
- Processor status and mode.
- TAG_HI
- Primary cache tag, high.
- TAG_LO
- Primary cache tag, low.
- WATCH_
HI - Watchpoint address, high.
- WATCH_
LO - Watchpoint address, low.
- WIRED
- Number of wired (unreplaceable) TLB entries.
- XCONTEXT
- Page-table base plus the faulting VPN2 (64-bit refill).