Skip to content

Commit 5029aa7

Browse files
authored
Merge pull request riscv-software-src#1787 from riscv-software-src/fix-cfg-priv
2 parents 60f02dd + eb07f10 commit 5029aa7

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)