aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/qemu_test/linuxkernel.py
diff options
context:
space:
mode:
authorAtish Patra <atishp@rivosinc.com>2025-02-06 01:58:47 -0800
committerAlistair Francis <alistair.francis@wdc.com>2025-03-04 15:42:54 +1000
commitabe9b81ee41b607eab1928f337837a19acae3208 (patch)
treef70d842655ed4a33c54d0151d0da2a0224f1a96f /tests/functional/qemu_test/linuxkernel.py
parent59eaf1570456b701fe6dfa4a8f747e65633c385f (diff)
downloadqemu-abe9b81ee41b607eab1928f337837a19acae3208.zip
qemu-abe9b81ee41b607eab1928f337837a19acae3208.tar.gz
qemu-abe9b81ee41b607eab1928f337837a19acae3208.tar.bz2
target/riscv: Mask out upper sscofpmf bits during validation
As per the ISA definition, the upper 8 bits in hpmevent are defined by Sscofpmf for privilege mode filtering and overflow bits while the lower 56 bits are desginated for platform specific hpmevent values. For the reset case, mhpmevent value should have zero in lower 56 bits. Software may set the OF bit to indicate disable interrupt. Ensure that correct value is checked after masking while clearing the event encodings. Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Acked-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Atish Patra <atishp@rivosinc.com> Message-ID: <20250206-pmu_minor_fixes-v2-2-1bb0f4aeb8b4@rivosinc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'tests/functional/qemu_test/linuxkernel.py')
0 files changed, 0 insertions, 0 deletions