aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/qemu_test/linuxkernel.py
diff options
context:
space:
mode:
authorRob Bradford <rbradford@rivosinc.com>2025-02-10 15:37:13 +0000
committerAlistair Francis <alistair.francis@wdc.com>2025-03-04 15:42:54 +1000
commit2c1b42144018ec5ab097e003b974e3a094d73b2f (patch)
treed3475c36ba8c09d6b15ec641ec86624b358feee4 /tests/functional/qemu_test/linuxkernel.py
parent8b65852196650417532ff924c8a2cb0117e2be19 (diff)
downloadqemu-2c1b42144018ec5ab097e003b974e3a094d73b2f.zip
qemu-2c1b42144018ec5ab097e003b974e3a094d73b2f.tar.gz
qemu-2c1b42144018ec5ab097e003b974e3a094d73b2f.tar.bz2
target/riscv: Respect mseccfg.RLB bit for TOR mode PMP entry
When running in TOR mode (Top of Range) the next PMP entry controls whether the entry is locked. However simply checking if the PMP_LOCK bit is set is not sufficient with the Smepmp extension which now provides a bit (mseccfg.RLB (Rule Lock Bypass)) to disregard the lock bits. In order to respect this bit use the convenience pmp_is_locked() function rather than directly checking PMP_LOCK since this function checks mseccfg.RLB. Signed-off-by: Rob Bradford <rbradford@rivosinc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Message-ID: <20250210153713.343626-1-rbradford@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