summaryrefslogtreecommitdiff
path: root/src/arch/alpha/registers.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2010-10-04 11:58:06 -0700
committerGabe Black <gblack@eecs.umich.edu>2010-10-04 11:58:06 -0700
commitd4492190e6bbf709724af28d262b0a681c975ec0 (patch)
treec4054f74080fd09f440ee3b58b7c43860e2dfab2 /src/arch/alpha/registers.hh
parent538acf2082df45da7fcb297e3805eeacdc9cd293 (diff)
downloadgem5-d4492190e6bbf709724af28d262b0a681c975ec0.tar.xz
Alpha: Fix Alpha NumMiscArchRegs constant.
Also add asserts in O3's Scoreboard class to catch bad indexes.
Diffstat (limited to 'src/arch/alpha/registers.hh')
-rw-r--r--src/arch/alpha/registers.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/alpha/registers.hh b/src/arch/alpha/registers.hh
index d8752d520..1c4bbdca3 100644
--- a/src/arch/alpha/registers.hh
+++ b/src/arch/alpha/registers.hh
@@ -63,7 +63,8 @@ enum MiscRegIndex
MISCREG_UNIQ,
MISCREG_LOCKFLAG,
MISCREG_LOCKADDR,
- MISCREG_INTR
+ MISCREG_INTR,
+ NUM_MISCREGS
};
// semantically meaningful register indices
@@ -84,15 +85,14 @@ const RegIndex SyscallSuccessReg = 19;
const int NumIntArchRegs = 32;
const int NumPALShadowRegs = 8;
const int NumFloatArchRegs = 32;
-// @todo: Figure out what this number really should be.
-const int NumMiscArchRegs = 77;
+const int NumMiscArchRegs = NUM_MISCREGS;
const int NumIntRegs = NumIntArchRegs + NumPALShadowRegs;
const int NumFloatRegs = NumFloatArchRegs;
const int NumMiscRegs = NumMiscArchRegs;
const int TotalNumRegs =
- NumIntRegs + NumFloatRegs + NumMiscRegs + NumInternalProcRegs;
+ NumIntRegs + NumFloatRegs + NumMiscRegs;
const int TotalDataRegs = NumIntRegs + NumFloatRegs;