From 456c9e19d811ddc5da99974a40ee79a6f535a597 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Sun, 5 Feb 2023 16:02:30 -0800 Subject: Make clint tolerant of discontiguous hart IDs --- riscv/sim.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'riscv/sim.cc') diff --git a/riscv/sim.cc b/riscv/sim.cc index 4e5e9a7..114151a 100644 --- a/riscv/sim.cc +++ b/riscv/sim.cc @@ -116,7 +116,7 @@ sim_t::sim_t(const cfg_t *cfg, bool halted, // setting the dtb_file argument has one. reg_t clint_base; if (fdt_parse_clint(fdt, &clint_base, "riscv,clint0") == 0) { - clint.reset(new clint_t(procs, CPU_HZ / INSNS_PER_RTC_TICK, cfg->real_time_clint())); + clint.reset(new clint_t(this, CPU_HZ / INSNS_PER_RTC_TICK, cfg->real_time_clint())); bus.add_device(clint_base, clint.get()); } -- cgit v1.1