summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-10-31 18:51:26 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-10-31 18:51:26 -0500
commit1543c3d0a11d77ac82658fdace755a0967d32cbb (patch)
treedb771695d62ee4b3e89e14a1547f0dbb68f84c04 /src
parent1dd903e856e2e9995a85ac79e6519ff2d1f4d790 (diff)
downloadgem5-1543c3d0a11d77ac82658fdace755a0967d32cbb.tar.xz
More typos! I need to get nfs to work.
--HG-- extra : convert_revision : f5693e96d376254f777fb0cce7b5be3d36efbea9
Diffstat (limited to 'src')
-rw-r--r--src/arch/alpha/isa/decoder.isa4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/alpha/isa/decoder.isa b/src/arch/alpha/isa/decoder.isa
index c5f47aaa2..584d64a3d 100644
--- a/src/arch/alpha/isa/decoder.isa
+++ b/src/arch/alpha/isa/decoder.isa
@@ -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);