Skip to main content

Module regs

Module regs 

Source
Expand description

The VR4300 register file.

Split out so $zero’s hardwiring lives in exactly one place. Every read goes through Regs::read and every write through Regs::write, so no call site can forget it — a scattered if rd != 0 is how a write to $zero eventually slips through and corrupts the architectural zero.

Modules§

gpr
MIPS general-purpose register indices, by their ABI names.

Structs§

Regs
General-purpose registers plus the HI/LO multiply-divide pair.