summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-01-05 17:48:40 -0800
committerGabe Black <gabeblack@google.com>2018-01-20 08:07:23 +0000
commit703662624ca9f6f5454b4d1ac773475c0af1bec5 (patch)
tree68181a1f3683dc45c9346c09a379679e1d13d16c /src/arch/x86
parent2a15bfd79ced20a6d4cbf0a0a4c2fbb1444b9a44 (diff)
downloadgem5-703662624ca9f6f5454b4d1ac773475c0af1bec5.tar.xz
x86, mem: Pass the multi level page table layout in as a parameter.
Don't get it from a global constant declared in an ISA header file. Change-Id: Ie19440abdd76500a5e12e6791e6f755ad9e95af3 Reviewed-on: https://gem5-review.googlesource.com/7344 Maintainer: Gabe Black <gabeblack@google.com> Reviewed-by: Brandon Potter <Brandon.Potter@amd.com> Reviewed-by: Alexandru Duțu <alexandru.dutu@amd.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/process.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/x86/process.cc b/src/arch/x86/process.cc
index 52255af7a..627750cbd 100644
--- a/src/arch/x86/process.cc
+++ b/src/arch/x86/process.cc
@@ -101,7 +101,8 @@ X86Process::X86Process(ProcessParams *params, ObjectFile *objFile,
: Process(params, params->useArchPT ?
static_cast<EmulationPageTable *>(
new ArchPageTable(params->name, params->pid,
- params->system, PageBytes)) :
+ params->system, PageBytes,
+ PageTableLayout)) :
new EmulationPageTable(params->name, params->pid,
PageBytes),
objFile),