|
From: openocd-gerrit <ope...@us...> - 2026-07-17 08:32:39
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Main OpenOCD repository".
The branch, master has been updated
via da6c65041fb9e299fe8f1cc9eb825c119c454c5c (commit)
from cb52502e88832386610add9781030f5380344063 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit da6c65041fb9e299fe8f1cc9eb825c119c454c5c
Author: Anatoly Parshintsev <kup...@gm...>
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 <kup...@gm...>
Reviewed-on: https://review.openocd.org/c/openocd/+/9414
Tested-by: jenkins
Reviewed-by: Tomas Vanek <va...@fb...>
diff --git a/src/target/riscv/riscv_reg_impl.h b/src/target/riscv/riscv_reg_impl.h
index 2cf4e6ad5..2948ef401 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:
@@ -216,6 +214,8 @@ static inline bool riscv_reg_impl_gdb_regno_cacheable(enum gdb_regno regno,
case GDB_REGNO_TDATA2: /* Changes value when tselect is changed. */
case GDB_REGNO_DSCRATCH0: /* Dscratch* need not retain value between abstract commands. */
case GDB_REGNO_DSCRATCH1:
+ case GDB_REGNO_VSTART: /* Changes value when vtype is changed. */
+ case GDB_REGNO_VL: /* Changes value when vtype is changed. */
default:
return false;
}
-----------------------------------------------------------------------
Summary of changes:
src/target/riscv/riscv_reg_impl.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
Main OpenOCD repository
|