summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-10-31 18:59:50 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-10-31 18:59:50 -0500
commitf3ba6d20f6070c30418866e627e2418f39b433dd (patch)
tree8e2ec000d30992d3d7165eaba8d16d26b0340e4b
parent1543c3d0a11d77ac82658fdace755a0967d32cbb (diff)
downloadgem5-f3ba6d20f6070c30418866e627e2418f39b433dd.tar.xz
Arg!
--HG-- extra : convert_revision : 8328d002780c0291e7eb264076a62084de88b7a5
-rw-r--r--src/arch/alpha/isa/decoder.isa2
1 files changed, 1 insertions, 1 deletions
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