const int MaxLocal = 24;
const int MaxInput = 32;
const int MaxMicroReg = 40;
- if (reg < FP_Base_DepTag) {
+ if (reg < FP_Reg_Base) {
// If we used a register from the next or previous window,
// take out the offset.
while (reg >= MaxMicroReg)
break;
}
}
- } else if (reg < Ctrl_Base_DepTag) {
- ccprintf(os, "%%f%d", reg - FP_Base_DepTag);
+ } else if (reg < Misc_Reg_Base) {
+ ccprintf(os, "%%f%d", reg - FP_Reg_Base);
} else {
- switch (reg - Ctrl_Base_DepTag) {
+ switch (reg - Misc_Reg_Base) {
case MISCREG_ASI:
ccprintf(os, "%%asi");
break;
ccprintf(os, "%%fsr");
break;
default:
- ccprintf(os, "%%ctrl%d", reg - Ctrl_Base_DepTag);
+ ccprintf(os, "%%ctrl%d", reg - Misc_Reg_Base);
}
}
}
/// @retval Full-system mode: NoFault if FP is enabled, FpDisabled
/// if not. Non-full-system mode: always returns NoFault.
static inline Fault
- checkFpEnableFault(%(CPU_exec_context)s *xc)
+ checkFpEnableFault(CPU_EXEC_CONTEXT *xc)
{
if (FullSystem) {
- if (xc->readMiscReg(MISCREG_PSTATE) & PSTATE::pef &&
- xc->readMiscReg(MISCREG_FPRS) & 0x4) {
+ PSTATE pstate = xc->readMiscReg(MISCREG_PSTATE);
+ if (pstate.pef && xc->readMiscReg(MISCREG_FPRS) & 0x4) {
return NoFault;
} else {
return new FpDisabled;