put the int register count in intregs.hh
authorGabe Black <gblack@eecs.umich.edu>
Wed, 21 Mar 2007 21:04:54 +0000 (21:04 +0000)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 21 Mar 2007 21:04:54 +0000 (21:04 +0000)
--HG--
extra : convert_revision : c48c13d9c4606c8cb7c60d18cd0f4dac9103a501

src/arch/x86/intregfile.hh
src/arch/x86/intregs.hh

index da631d444e27be43371265af172fe573c2abac56..f7b03f0f0ddf1d51681c9e05152da76657e1b7d8 100644 (file)
@@ -88,8 +88,9 @@
 #ifndef __ARCH_X86_INTREGFILE_HH__
 #define __ARCH_X86_INTREGFILE_HH__
 
-#include "arch/x86/x86_traits.hh"
+#include "arch/x86/intregs.hh"
 #include "arch/x86/types.hh"
+#include "arch/x86/x86_traits.hh"
 
 #include <string>
 
@@ -102,7 +103,7 @@ namespace X86ISA
     //This function translates integer register file indices into names
     std::string getIntRegName(RegIndex);
 
-    const int NumIntArchRegs = 16;
+    const int NumIntArchRegs = NUM_INTREGS;
     const int NumIntRegs = NumIntArchRegs + NumMicroIntRegs;
 
     class IntRegFile
index 3fe25bd5f08f0f42440a4c134ccd5fda3ca7dc72..ed801cc48fe998dd824177eb4a80cfc3c8af230c 100644 (file)
@@ -77,7 +77,8 @@ namespace X86ISA
         INTREG_R12W,
         INTREG_R13W,
         INTREG_R14W,
-        INTREG_R15W
+        INTREG_R15W,
+        NUM_INTREGS
     };
 };