diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-07-18 16:12:39 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-07-18 16:12:39 -0700 |
commit | 387f00e3ddf43f57fbca50657b698322421bf678 (patch) | |
tree | 74e60057557ee78f38f7ac3dc46de720ee197fb2 /src/arch/x86/miscregfile.hh | |
parent | 5cca5ca3d9e5fffb284d5ffd3fc21de147f2f1d3 (diff) | |
download | gem5-387f00e3ddf43f57fbca50657b698322421bf678.tar.xz |
Fill out the miscreg file and add types to miscregs.hh
--HG--
extra : convert_revision : 865432256518c4340d9f319bdd9b7d160dc656a0
Diffstat (limited to 'src/arch/x86/miscregfile.hh')
-rw-r--r-- | src/arch/x86/miscregfile.hh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/arch/x86/miscregfile.hh b/src/arch/x86/miscregfile.hh index 10acb97a4..e095e06e9 100644 --- a/src/arch/x86/miscregfile.hh +++ b/src/arch/x86/miscregfile.hh @@ -89,6 +89,7 @@ #define __ARCH_X86_MISCREGFILE_HH__ #include "arch/x86/faults.hh" +#include "arch/x86/miscregs.hh" #include "arch/x86/types.hh" #include <string> @@ -100,11 +101,14 @@ namespace X86ISA std::string getMiscRegName(RegIndex); //These will have to be updated in the future. - const int NumMiscArchRegs = 0; - const int NumMiscRegs = 0; + const int NumMiscArchRegs = NUM_MISCREGS; + const int NumMiscRegs = NUM_MISCREGS; class MiscRegFile { + protected: + MiscReg regVal[NumMiscRegs]; + public: void clear(); |