aboutsummaryrefslogtreecommitdiff
path: root/riscv/clint.cc
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/clint.cc')
-rw-r--r--riscv/clint.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/clint.cc b/riscv/clint.cc
index 7e7e89c..4423467 100644
--- a/riscv/clint.cc
+++ b/riscv/clint.cc
@@ -118,7 +118,7 @@ void clint_t::tick(reg_t rtc_ticks)
clint_t* clint_parse_from_fdt(const void* fdt, const sim_t* sim, reg_t* base,
const std::vector<std::string>& sargs) {
- if (fdt_parse_clint(fdt, base, "riscv,clint0") == 0)
+ if (fdt_parse_clint(fdt, base, "riscv,clint0") == 0 || fdt_parse_clint(fdt, base, "sifive,clint0") == 0)
return new clint_t(sim,
sim->CPU_HZ / sim->INSNS_PER_RTC_TICK,
sim->get_cfg().real_time_clint);