summaryrefslogtreecommitdiff
path: root/src/arch/arm/isa_traits.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-07-08 23:02:21 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-07-08 23:02:21 -0700
commit1b29f1621d714c6dc0f2ab921f12e9eb1dbfcd46 (patch)
tree4e7adf45cefcd7364abf04b95cf9ab948e93df41 /src/arch/arm/isa_traits.hh
parent0338c83c9d3db8ae71056c191bebc2df4ae9d513 (diff)
downloadgem5-1b29f1621d714c6dc0f2ab921f12e9eb1dbfcd46.tar.xz
ARM, Simple CPU: Fix an index and add assert checks.
Diffstat (limited to 'src/arch/arm/isa_traits.hh')
-rw-r--r--src/arch/arm/isa_traits.hh13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/arch/arm/isa_traits.hh b/src/arch/arm/isa_traits.hh
index 6f5e17497..d670d673d 100644
--- a/src/arch/arm/isa_traits.hh
+++ b/src/arch/arm/isa_traits.hh
@@ -33,6 +33,7 @@
#ifndef __ARCH_ARM_ISA_TRAITS_HH__
#define __ARCH_ARM_ISA_TRAITS_HH__
+#include "arch/arm/max_inst_regs.hh"
#include "arch/arm/types.hh"
#include "base/types.hh"
@@ -45,6 +46,8 @@ class StaticInstPtr;
namespace ArmISA
{
using namespace LittleEndianGuest;
+ using ArmISAInst::MaxInstSrcRegs;
+ using ArmISAInst::MaxInstDestRegs;
StaticInstPtr decodeInst(ExtMachInst);
@@ -100,20 +103,10 @@ namespace ArmISA
const int NumIntSpecialRegs = 19;
const int NumFloatArchRegs = 16;
const int NumFloatSpecialRegs = 5;
- const int NumControlRegs = 7;
const int NumInternalProcRegs = 0;
const int NumIntRegs = NumIntArchRegs + NumIntSpecialRegs;
const int NumFloatRegs = NumFloatArchRegs + NumFloatSpecialRegs;
- const int NumMiscRegs = NumControlRegs;
-
- const int TotalNumRegs = NumIntRegs + NumFloatRegs + NumMiscRegs;
-
- const int TotalDataRegs = NumIntRegs + NumFloatRegs;
-
- // Static instruction parameters
- const int MaxInstSrcRegs = 5;
- const int MaxInstDestRegs = 3;
// semantically meaningful register indices
const int ReturnValueReg = 0;