diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-10-31 18:51:26 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-10-31 18:51:26 -0500 |
commit | 1543c3d0a11d77ac82658fdace755a0967d32cbb (patch) | |
tree | db771695d62ee4b3e89e14a1547f0dbb68f84c04 /src/arch/alpha | |
parent | 1dd903e856e2e9995a85ac79e6519ff2d1f4d790 (diff) | |
download | gem5-1543c3d0a11d77ac82658fdace755a0967d32cbb.tar.xz |
More typos! I need to get nfs to work.
--HG--
extra : convert_revision : f5693e96d376254f777fb0cce7b5be3d36efbea9
Diffstat (limited to 'src/arch/alpha')
-rw-r--r-- | src/arch/alpha/isa/decoder.isa | 4 |
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); |