From: Gabe Black Date: Tue, 31 Oct 2006 23:59:50 +0000 (-0500) Subject: Arg! X-Git-Tag: m5_2.0_beta2~53^2~73 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3ba6d20f6070c30418866e627e2418f39b433dd;p=gem5.git Arg! --HG-- extra : convert_revision : 8328d002780c0291e7eb264076a62084de88b7a5 --- diff --git a/src/arch/alpha/isa/decoder.isa b/src/arch/alpha/isa/decoder.isa index 584d64a3d..f5483d9c0 100644 --- a/src/arch/alpha/isa/decoder.isa +++ b/src/arch/alpha/isa/decoder.isa @@ -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