target/riscv: Fix mode in riscv_tlb_fill
authorIrina Ryapolova <irina.ryapolova@syntacore.com>
Wed, 20 Mar 2024 17:28:28 +0000 (20:28 +0300)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 22 Mar 2024 05:32:33 +0000 (15:32 +1000)
commite06adebb08325c39e4c9b652139426c10f021abb
tree181eeae62475a7cf66fb493b0296d448f5963ace
parentc9b07fe14d3525cd3f2fc01f46eeb3d4ed7c3603
target/riscv: Fix mode in riscv_tlb_fill

Need to convert mmu_idx to privilege mode for PMP function.

Signed-off-by: Irina Ryapolova <irina.ryapolova@syntacore.com>
Fixes: b297129ae1 ("target/riscv: propagate PMP permission to TLB page")
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-ID: <20240320172828.23965-1-irina.ryapolova@syntacore.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu_helper.c