Skip to main content

Module reg

Module reg 

Source
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).