--HG--
extra : convert_revision : 8328d002780c0291e7eb264076a62084de88b7a5
This commit is contained in:
Gabe Black 2006-10-31 18:59:50 -05:00
parent 1543c3d0a1
commit f3ba6d20f6

View file

@ -762,7 +762,7 @@ decode OPCODE default Unknown::unknown() {
1: hw_mtpr({{
int miscRegIndex = (ipr_index < NumInternalProcRegs) ?
IprToMiscRegIndex[ipr_index] : -1;
if(miscRegIndex < 0 || !IprIsWritable(miscRegIndex)
if(miscRegIndex < 0 || !IprIsWritable(miscRegIndex) ||
miscRegIndex >= NumInternalProcRegs)
fault = new UnimplementedOpcodeFault;
else