Skip to content

Commit 3564019

Browse files
author
Zhibo Hong
committed
Fix collapse when setting hartids from command line.
1 parent d3b8933 commit 3564019

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
@@ -278,7 +278,7 @@ int sim_t::run()
278278
if (!debug && log)
279279
set_procs_debug(true);
280280

281-
htif_t::set_expected_xlen(harts[0]->get_isa().get_max_xlen());
281+
htif_t::set_expected_xlen(harts.begin()->second->get_isa().get_max_xlen());
282282

283283
// htif_t::run() will repeatedly call back into sim_t::idle(), each
284284
// invocation of which will advance target time

0 commit comments

Comments
 (0)