Here are two small fixes around mhpmevent encoding and reset value.
The first patch is picked from the platform specific event encoding
series[1].
[1] https://lore.kernel.org/qemu-devel/20241009-pmu_event_machine-v1-0-dcbd7a60e3ba@rivosinc.com/
Signed-off-by: Atish Patra <atishp@rivosinc.com>
---
Atish Patra (2):
target/riscv: Fix the hpmevent mask
target/riscv: Mask out upper sscofpmf bits during validation
target/riscv/cpu_bits.h | 9 ++++++---
target/riscv/pmu.c | 2 +-
2 files changed, 7 insertions(+), 4 deletions(-)
---
base-commit: b82a273fb2210edf7beb9e5ca1401927fbcbe164
change-id: 20250115-pmu_minor_fixes-7a2b8e3658e4
--
Regards,
Atish patra