summaryrefslogtreecommitdiff
path: root/src/arch/alpha/registers.hh
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2013-10-15 14:22:43 -0400
committerSteve Reinhardt <steve.reinhardt@amd.com>2013-10-15 14:22:43 -0400
commita830e63de71e5929b8ff8e334bc872faa9193a8b (patch)
tree64346e0672e36c08a6a8efa6e3ebb3ed875e6fa8 /src/arch/alpha/registers.hh
parent9bd017b8aee1432b78361da89ce4980dabb70084 (diff)
downloadgem5-a830e63de71e5929b8ff8e334bc872faa9193a8b.tar.xz
isa: clean up register constants
Clean up and add some consistency to the *_Base_DepTag constants as well as some related register constants: - Get rid of NumMiscArchRegs, TotalArchRegs, and TotalDataRegs since they're never used and not always defined - Set FP_Base_DepTag = NumIntRegs when possible (i.e., every case except x86) - Set Ctrl_Base_DepTag = FP_Base_DepTag + NumFloatRegs (this was true before, but wasn't always expressed that way) - Drastically reduce the number of arbitrary constants appearing in these calculations
Diffstat (limited to 'src/arch/alpha/registers.hh')
-rw-r--r--src/arch/alpha/registers.hh9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/arch/alpha/registers.hh b/src/arch/alpha/registers.hh
index e1f50ddc2..6f0b02c7f 100644
--- a/src/arch/alpha/registers.hh
+++ b/src/arch/alpha/registers.hh
@@ -88,23 +88,20 @@ const RegIndex SyscallSuccessReg = 19;
const int NumIntArchRegs = 32;
const int NumPALShadowRegs = 8;
const int NumFloatArchRegs = 32;
-const int NumMiscArchRegs = NUM_MISCREGS;
const int NumIntRegs = NumIntArchRegs + NumPALShadowRegs;
const int NumFloatRegs = NumFloatArchRegs;
-const int NumMiscRegs = NumMiscArchRegs;
+const int NumMiscRegs = NUM_MISCREGS;
const int TotalNumRegs =
NumIntRegs + NumFloatRegs + NumMiscRegs;
-const int TotalDataRegs = NumIntRegs + NumFloatRegs;
-
// These enumerate all the registers for dependence tracking.
enum DependenceTags {
// 0..31 are the integer regs 0..31
// 32..63 are the FP regs 0..31, i.e. use (reg + FP_Base_DepTag)
- FP_Base_DepTag = 40,
- Ctrl_Base_DepTag = 72,
+ FP_Base_DepTag = NumIntRegs,
+ Ctrl_Base_DepTag = FP_Base_DepTag + NumFloatRegs,
Max_DepTag = Ctrl_Base_DepTag + NumMiscRegs + NumInternalProcRegs
};