From 3e8d76e2e23ab23d68e569e9b2c4498a06c19f59 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 14 Jan 2018 11:44:04 -0800 Subject: arch: Fix a fatal_if in most of the arch's process classes. When switching an assert to a fatal while addressing recent review feedback, I forgot to reverse the polarity of the condition, making the fatal fire in exactly the opposite of the conditions it was meant to. Change-Id: Icf49864ef449052bbb0d427dca786006166575c4 Reviewed-on: https://gem5-review.googlesource.com/7381 Reviewed-by: Matthias Jung Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- src/arch/riscv/process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/arch/riscv/process.cc') diff --git a/src/arch/riscv/process.cc b/src/arch/riscv/process.cc index 44b276a4b..73df5f50d 100644 --- a/src/arch/riscv/process.cc +++ b/src/arch/riscv/process.cc @@ -64,7 +64,7 @@ RiscvProcess::RiscvProcess(ProcessParams *params, ObjectFile *objFile) : PageBytes), objFile) { - fatal_if(!params->useArchPT, "Arch page tables not implemented."); + 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; -- cgit v1.2.3