ThreadContext is the external interface to all thread state for anything outside of the CPU.
RegVal readIntReg(RegIndex reg_idx) const
constexpr T bits(T val, unsigned first, unsigned last)
Extract the bitfield from position 'first' to 'last' (inclusive) from 'val' and right justify it.
virtual RegVal readMiscRegNoEffect(RegIndex misc_reg) const =0
void setIntReg(RegIndex reg_idx, RegVal val)