diff options
author | Alexandru <alexandru.dutu@amd.com> | 2014-08-28 10:11:44 -0500 |
---|---|---|
committer | Alexandru <alexandru.dutu@amd.com> | 2014-08-28 10:11:44 -0500 |
commit | 5efbb4442a0e8c653539e263bf87c48849280e23 (patch) | |
tree | da6807c806ebb1f658692c5bf823156831134c9f /src/arch/x86/process.hh | |
parent | 26ac28dec288e4fd96d999267ec7cafad4d58c5a (diff) | |
download | gem5-5efbb4442a0e8c653539e263bf87c48849280e23.tar.xz |
mem: adding architectural page table support for SE mode
This patch enables the use of page tables that are stored in system memory
and respect x86 specification, in SE mode. It defines an architectural
page table for x86 as a MultiLevelPageTable class and puts a placeholder
class for other ISAs page tables, giving the possibility for future
implementation.
Diffstat (limited to 'src/arch/x86/process.hh')
-rw-r--r-- | src/arch/x86/process.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/arch/x86/process.hh b/src/arch/x86/process.hh index 6a221e792..2fb051953 100644 --- a/src/arch/x86/process.hh +++ b/src/arch/x86/process.hh @@ -44,6 +44,7 @@ #include <vector> #include "sim/process.hh" +#include "mem/multi_level_page_table.hh" class SyscallDesc; @@ -133,6 +134,14 @@ namespace X86ISA X86ISA::IntReg getSyscallArg(ThreadContext *tc, int &i, int width); void setSyscallArg(ThreadContext *tc, int i, X86ISA::IntReg val); }; + + /** + * Declaration of architectural page table for x86. + * + * These page tables are stored in system memory and respect x86 specification. + */ + typedef MultiLevelPageTable<PageTableOps> ArchPageTable; + } #endif // __ARCH_X86_PROCESS_HH__ |