From 3564019d59ca14e1b4b0e8c3b7483b4e87684c7c Mon Sep 17 00:00:00 2001 From: Zhibo Hong Date: Sat, 15 Nov 2025 15:48:05 +0800 Subject: [PATCH] Fix collapse when setting hartids from command line. --- riscv/sim.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/sim.cc b/riscv/sim.cc index d5d9f39d..3db3d8d8 100644 --- a/riscv/sim.cc +++ b/riscv/sim.cc @@ -278,7 +278,7 @@ int sim_t::run() if (!debug && log) set_procs_debug(true); - htif_t::set_expected_xlen(harts[0]->get_isa().get_max_xlen()); + htif_t::set_expected_xlen(harts.begin()->second->get_isa().get_max_xlen()); // htif_t::run() will repeatedly call back into sim_t::idle(), each // invocation of which will advance target time