From eb07f100a37c12d2c0eb5501394c6c09342985c8 Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Tue, 27 Aug 2024 13:57:03 -0700 Subject: [PATCH] Use cmdline --priv flag when parsing proc configurations from DTB --- riscv/sim.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/sim.cc b/riscv/sim.cc index a44aea9413..115fc0c4c9 100644 --- a/riscv/sim.cc +++ b/riscv/sim.cc @@ -195,7 +195,7 @@ sim_t::sim_t(const cfg_t *cfg, bool halted, exit(1); } - procs.push_back(new processor_t(isa_str, DEFAULT_PRIV, + procs.push_back(new processor_t(isa_str, cfg->priv, cfg, this, hartid, halted, log_file.get(), sout_)); harts[hartid] = procs[cpu_idx];