diff options
Diffstat (limited to 'src/arch/riscv')
-rw-r--r-- | src/arch/riscv/process.cc | 5 | ||||
-rw-r--r-- | src/arch/riscv/process.hh | 4 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/arch/riscv/process.cc b/src/arch/riscv/process.cc index b4fe1eefc..88a093a06 100644 --- a/src/arch/riscv/process.cc +++ b/src/arch/riscv/process.cc @@ -59,9 +59,10 @@ using namespace std; using namespace RiscvISA; -RiscvProcess::RiscvProcess(ProcessParams * params, - ObjectFile *objFile) : Process(params, objFile) +RiscvProcess::RiscvProcess(ProcessParams *params, ObjectFile *objFile) : + Process(params, new FuncPageTable(params->name, params->pid), objFile) { + fatal_if(!params->useArchPT, "Arch page tables not implemented."); const Addr stack_base = 0x7FFFFFFFFFFFFFFFL; const Addr max_stack_size = 8 * 1024 * 1024; const Addr next_thread_stack_base = stack_base - max_stack_size; diff --git a/src/arch/riscv/process.hh b/src/arch/riscv/process.hh index 2a27f350e..bda278ec4 100644 --- a/src/arch/riscv/process.hh +++ b/src/arch/riscv/process.hh @@ -65,8 +65,4 @@ class RiscvProcess : public Process virtual bool mmapGrowsDown() const override { return false; } }; -/* No architectural page table defined for this ISA */ -typedef NoArchPageTable ArchPageTable; - - #endif // __RISCV_PROCESS_HH__ |