From ad0056d2e811284870edcc5350db9fa3dbff6f2e Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 22 Dec 2017 17:14:47 -0800 Subject: arch,mem: Remove the default value for page size. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This breaks one more architecture dependence outside of the ISAs. Change-Id: I071f9ed73aef78e1cd1752247c183e30854b2d28 Reviewed-on: https://gem5-review.googlesource.com/6982 Maintainer: Gabe Black Reviewed-by: Alexandru Duțu Reviewed-by: Jason Lowe-Power Reviewed-by: Brandon Potter --- src/arch/riscv/process.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/arch/riscv/process.cc') diff --git a/src/arch/riscv/process.cc b/src/arch/riscv/process.cc index 88a093a06..44b276a4b 100644 --- a/src/arch/riscv/process.cc +++ b/src/arch/riscv/process.cc @@ -60,7 +60,9 @@ using namespace std; using namespace RiscvISA; RiscvProcess::RiscvProcess(ProcessParams *params, ObjectFile *objFile) : - Process(params, new FuncPageTable(params->name, params->pid), objFile) + Process(params, new FuncPageTable(params->name, params->pid, + PageBytes), + objFile) { fatal_if(!params->useArchPT, "Arch page tables not implemented."); const Addr stack_base = 0x7FFFFFFFFFFFFFFFL; -- cgit v1.2.3