diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-03-05 14:49:07 +0000 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-03-05 14:49:07 +0000 |
commit | b832e6740f32f9f0508f11dab93d7a8296e76854 (patch) | |
tree | 422f297310b6365ff2fe0be7bd380f414b75f956 /src/arch | |
parent | ecc1066f43fe0a955682e66dbbad454e803d1b67 (diff) | |
download | gem5-b832e6740f32f9f0508f11dab93d7a8296e76854.tar.xz |
Various touch ups
--HG--
extra : convert_revision : 19ff30d969a46adbd256f674582a9e7d398b56ed
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/isa_traits.hh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/arch/x86/isa_traits.hh b/src/arch/x86/isa_traits.hh index fcff50b70..d5da8b420 100644 --- a/src/arch/x86/isa_traits.hh +++ b/src/arch/x86/isa_traits.hh @@ -58,8 +58,11 @@ #ifndef __ARCH_X86_ISATRAITS_HH__ #define __ARCH_X86_ISATRAITS_HH__ +#include "arch/x86/types.hh" #include "arch/x86/x86_traits.hh" +class StaticInstPtr; + namespace LittleEndianGuest {} namespace X86ISA @@ -111,10 +114,15 @@ namespace X86ISA const int MaxInstDestRegs = 10; //4k. This value is not constant on x86. - const int LogVmPageSize = 12; - const int VMPageSize = (1 << LogVmPageSize); + const int LogVMPageSize = 12; + const int VMPageSize = (1 << LogVMPageSize); + + const int PageShift = 13; + const int PageBytes = 1ULL << PageShift; const int BranchPredAddrShiftAmt = 0; + + StaticInstPtr decodeInst(ExtMachInst); }; #endif // __ARCH_X86_ISATRAITS_HH__ |