This is an automated email from Gerrit.

"Anatoly P <[email protected]>" just uploaded a new patch set 
to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/9187

-- gerrit

commit a4cec36d1cf02cc430d85fd14d0f654bf7d3db1c
Author: Parshintsev Anatoly <[email protected]>
Date:   Fri Aug 15 22:46:56 2025 +0300

    target/riscv: fix SV57 translation for kernel address space
    
    Fixes address translation for SV57 addresses.
    
    See [1] for details.
    
    Link: https://github.com/riscv-collab/riscv-openocd/pull/1285 [1]
    Change-Id: I53f7062f16c0b9e8595f38c07810b2dbc300980b
    Signed-off-by: Parshintsev Anatoly <[email protected]>

diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c
index d6b5804a66..8054a1c9b7 100644
--- a/src/target/riscv/riscv.c
+++ b/src/target/riscv/riscv.c
@@ -274,7 +274,7 @@ static const virt2phys_info_t sv57 = {
        .pte_ppn_shift = {10, 19, 28, 37, 46},
        .pte_ppn_mask = {0x1ff, 0x1ff, 0x1ff, 0x1ff, 0xff},
        .pa_ppn_shift = {12, 21, 30, 39, 48},
-       .pa_ppn_mask = {0x1ff, 0x1ff, 0x1ff, 0x1ff, 0xff},
+       .pa_ppn_mask = {0x1ff, 0x1ff, 0x1ff, 0x1ff, 0x1ff},
 };
 
 static const virt2phys_info_t sv57x4 = {

-- 

Reply via email to