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/+/9414

-- gerrit

commit 1d8e35f993c0f32c5f854e3813c1452a649891b3
Author: Parshintsev Anatoly <[email protected]>
Date:   Thu Jan 29 21:32:32 2026 +0300

    target/riscv: disable cache-on-read for VL and VSTART
    
    When VTYPE is updated:
    
    - VL is set to some appropriate value
    - VSTART is set to zero
    
    Change-Id: If67d0e4a1058d35f47b42c67abc2183836f34f22
    Signed-off-by: Anatoly Parshintsev <[email protected]>

diff --git a/src/target/riscv/riscv_reg_impl.h 
b/src/target/riscv/riscv_reg_impl.h
index 17e66935be..227e525be3 100644
--- a/src/target/riscv/riscv_reg_impl.h
+++ b/src/target/riscv/riscv_reg_impl.h
@@ -195,11 +195,9 @@ static inline bool riscv_reg_impl_gdb_regno_cacheable(enum 
gdb_regno regno,
         * CSRs. */
        switch (regno) {
        case GDB_REGNO_DPC:
-       case GDB_REGNO_VSTART:
        case GDB_REGNO_VXSAT:
        case GDB_REGNO_VXRM:
        case GDB_REGNO_VLENB:
-       case GDB_REGNO_VL:
        case GDB_REGNO_VTYPE:
        case GDB_REGNO_MISA:
        case GDB_REGNO_DCSR:
@@ -215,6 +213,8 @@ static inline bool riscv_reg_impl_gdb_regno_cacheable(enum 
gdb_regno regno,
        case GDB_REGNO_TSELECT: /* I think this should be above, but then it 
doesn't work. */
        case GDB_REGNO_TDATA1:  /* Changes value when tselect is changed. */
        case GDB_REGNO_TDATA2:  /* Changes value when tselect is changed. */
+       case GDB_REGNO_VSTART: /* Changes value when vtype is changed. */
+       case GDB_REGNO_VL: /* Changes value when vtype is changed. */
        default:
                return false;
        }

-- 

Reply via email to