summaryrefslogtreecommitdiff
path: root/src/arch/sparc/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/sparc/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/sparc/registers.hh')
-rw-r--r--src/arch/sparc/registers.hh14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/arch/sparc/registers.hh b/src/arch/sparc/registers.hh
index 8c61a070c..ffcfafcba 100644
--- a/src/arch/sparc/registers.hh
+++ b/src/arch/sparc/registers.hh
@@ -57,13 +57,6 @@ typedef union
typedef uint16_t RegIndex;
-// These enumerate all the registers for dependence tracking.
-enum DependenceTags {
- FP_Base_DepTag = 32*3+9,
- Ctrl_Base_DepTag = FP_Base_DepTag + 64,
- Max_DepTag = Ctrl_Base_DepTag + NumMiscRegs
-};
-
// semantically meaningful register indices
const int ZeroReg = 0; // architecturally meaningful
// the rest of these depend on the ABI
@@ -80,6 +73,13 @@ const int NumIntRegs = (MaxGL + 1) * 8 + NWindows * 16 + NumMicroIntRegs;
const int TotalNumRegs = NumIntRegs + NumFloatRegs + NumMiscRegs;
+// These enumerate all the registers for dependence tracking.
+enum DependenceTags {
+ FP_Base_DepTag = NumIntRegs,
+ Ctrl_Base_DepTag = FP_Base_DepTag + NumFloatRegs,
+ Max_DepTag = Ctrl_Base_DepTag + NumMiscRegs
+};
+
} // namespace SparcISA
#endif