]> xenbits.xensource.com Git - qemu-xen.git/commit
target/riscv: Use existing PMU counter mask in FDT generation
authorRob Bradford <rbradford@rivosinc.com>
Tue, 31 Oct 2023 15:37:15 +0000 (15:37 +0000)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 7 Nov 2023 01:06:02 +0000 (11:06 +1000)
commit2571a6427c4ded57e44d4c6cf92376d869a75a5c
treebcec662289cc1659737cd0bb5204a65ee89373d9
parent7c1bb1d8d412f03ec7d6042971892bd0dff222b7
target/riscv: Use existing PMU counter mask in FDT generation

During the FDT generation use the existing mask containing the enabled
counters rather then generating a new one. Using the existing mask will
support the use of discontinuous counters.

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Message-ID: <20231031154000.18134-4-rbradford@rivosinc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/virt.c
target/riscv/pmu.c
target/riscv/pmu.h