0: OpcdecFault::hw_mfpr();
format HwMoveIPR {
1: hw_mfpr({{
- int miscRegIndex = (ipr_index < NumInternalProcRegs) ?
+ int miscRegIndex = (ipr_index < MaxInternalProcRegs) ?
IprToMiscRegIndex[ipr_index] : -1;
if(miscRegIndex < 0 || !IprIsReadable(miscRegIndex) ||
miscRegIndex >= NumInternalProcRegs)
0: OpcdecFault::hw_mtpr();
format HwMoveIPR {
1: hw_mtpr({{
- int miscRegIndex = (ipr_index < NumInternalProcRegs) ?
+ int miscRegIndex = (ipr_index < MaxInternalProcRegs) ?
IprToMiscRegIndex[ipr_index] : -1;
if(miscRegIndex < 0 || !IprIsWritable(miscRegIndex) ||
miscRegIndex >= NumInternalProcRegs)