put the int register count in intregs.hh

--HG--
extra : convert_revision : c48c13d9c4606c8cb7c60d18cd0f4dac9103a501
This commit is contained in:
Gabe Black
2007-03-21 21:04:54 +00:00
parent 0a80d06dea
commit 1707aa750f
2 changed files with 5 additions and 3 deletions

View 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

View File

@@ -77,7 +77,8 @@ namespace X86ISA
INTREG_R12W,
INTREG_R13W,
INTREG_R14W,
INTREG_R15W
INTREG_R15W,
NUM_INTREGS
};
};