|
|
|
@ -119,7 +119,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>& UNUSED sargs) { |
|
|
|
const std::vector<std::string>& sargs UNUSED) { |
|
|
|
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, |
|
|
|
@ -128,7 +128,7 @@ clint_t* clint_parse_from_fdt(const void* fdt, const sim_t* sim, reg_t* base, |
|
|
|
return nullptr; |
|
|
|
} |
|
|
|
|
|
|
|
std::string clint_generate_dts(const sim_t* sim, const std::vector<std::string>& UNUSED sargs) { |
|
|
|
std::string clint_generate_dts(const sim_t* sim, const std::vector<std::string>& sargs UNUSED) { |
|
|
|
std::stringstream s; |
|
|
|
s << std::hex |
|
|
|
<< " clint@" << CLINT_BASE << " {\n" |
|
|
|
|