More typos! I need to get nfs to work.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 31 Oct 2006 23:51:26 +0000 (18:51 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 31 Oct 2006 23:51:26 +0000 (18:51 -0500)
--HG--
extra : convert_revision : f5693e96d376254f777fb0cce7b5be3d36efbea9

src/arch/alpha/isa/decoder.isa

index c5f47aaa2cb53578ca3b9577f14d32b3d83702a0..584d64a3da195fab8358c05678f517585166dba1 100644 (file)
@@ -748,6 +748,7 @@ decode OPCODE default Unknown::unknown() {
                 int miscRegIndex = (ipr_index < NumInternalProcRegs) ?
                         IprToMiscRegIndex[ipr_index] : -1;
                 if(miscRegIndex < 0 || !IprIsReadable(miscRegIndex) ||
+                    miscRegIndex >= NumInternalProcRegs)
                         fault = new UnimplementedOpcodeFault;
                 else
                     Ra = xc->readMiscRegWithEffect(miscRegIndex, fault);
@@ -761,7 +762,8 @@ 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
                     xc->setMiscRegWithEffect(miscRegIndex, Ra);