Skip to content

Commit

Permalink
Use cmdline --priv flag when parsing proc configurations from DTB
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Aug 27, 2024
1 parent 20cd44a commit eb07f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riscv/sim.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit eb07f10

Please sign in to comment.