mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/riscv: virt: Add PMU DT node to the device tree
Qemu virt machine can support few cache events and cycle/instret counters. It also supports counter overflow for these events. Add a DT node so that OpenSBI/Linux kernel is aware of the virt machine capabilities. There are some dummy nodes added for testing as well. Acked-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Atish Patra <atish.patra@wdc.com> Signed-off-by: Atish Patra <atishp@rivosinc.com> Message-Id: <20220824221701.41932-5-atishp@rivosinc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
892320facd
commit
abd9a20665
3 changed files with 74 additions and 0 deletions
|
@ -31,5 +31,6 @@ int riscv_pmu_init(RISCVCPU *cpu, int num_counters);
|
|||
int riscv_pmu_update_event_map(CPURISCVState *env, uint64_t value,
|
||||
uint32_t ctr_idx);
|
||||
int riscv_pmu_incr_ctr(RISCVCPU *cpu, enum riscv_pmu_event_idx event_idx);
|
||||
void riscv_pmu_generate_fdt_node(void *fdt, int num_counters, char *pmu_name);
|
||||
int riscv_pmu_setup_timer(CPURISCVState *env, uint64_t value,
|
||||
uint32_t ctr_idx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue