Skip to content

Commit

Permalink
Merge pull request #1787 from riscv-software-src/fix-cfg-priv
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 authored Aug 28, 2024
2 parents 60f02dd + eb07f10 commit 5029aa7
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 5029aa7

Please sign in to comment.