summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa_traits.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/isa_traits.hh')
-rw-r--r--src/arch/x86/isa_traits.hh12
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__