Arg!
authorGabe Black <gblack@eecs.umich.edu>
Tue, 31 Oct 2006 23:59:50 +0000 (18:59 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 31 Oct 2006 23:59:50 +0000 (18:59 -0500)
--HG--
extra : convert_revision : 8328d002780c0291e7eb264076a62084de88b7a5

src/arch/alpha/isa/decoder.isa

index 584d64a3da195fab8358c05678f517585166dba1..f5483d9c0c260d6f14fcb03a6a3556b15eed2b69 100644 (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