hw/riscv: virt: Add PMU DT node to the device tree
commitabd9a20665496aa4f3680fbbd42b5c389ea53d1c
authorAtish Patra <atishp@rivosinc.com>
Wed, 24 Aug 2022 22:17:00 +0000 (24 15:17 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 7 Sep 2022 07:19:15 +0000 (7 09:19 +0200)
treee57eecd59500f7b79f94a5c91ec46dd468d8bf98
parent892320facd73136b48bb58af3bd742686eb05416
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>
hw/riscv/virt.c
target/riscv/pmu.c
target/riscv/pmu.h