Skip to content

Commit eb07f10

Browse files
committed
Use cmdline --priv flag when parsing proc configurations from DTB
1 parent 20cd44a commit eb07f10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv/sim.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ sim_t::sim_t(const cfg_t *cfg, bool halted,
195195
exit(1);
196196
}
197197

198-
procs.push_back(new processor_t(isa_str, DEFAULT_PRIV,
198+
procs.push_back(new processor_t(isa_str, cfg->priv,
199199
cfg, this, hartid, halted,
200200
log_file.get(), sout_));
201201
harts[hartid] = procs[cpu_idx];

0 commit comments

Comments
 (0)