aboutsummaryrefslogtreecommitdiff
path: root/src/target/riscv/riscv.h
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2020-03-26 09:08:56 -0700
committerGitHub <noreply@github.com>2020-03-26 09:08:56 -0700
commit5b2426a4b2c3d0eb244bb8ec276ef24228e9e31d (patch)
tree187bc82c115b244bfee14ba6d7d2880616651b40 /src/target/riscv/riscv.h
parent548790fefc5da04a2a60d6fb54f765c7bf959e42 (diff)
downloadriscv-openocd-5b2426a4b2c3d0eb244bb8ec276ef24228e9e31d.zip
riscv-openocd-5b2426a4b2c3d0eb244bb8ec276ef24228e9e31d.tar.gz
riscv-openocd-5b2426a4b2c3d0eb244bb8ec276ef24228e9e31d.tar.bz2
Deal with vlenb being unreadable. (#458)
Instead of exiting during examine(), spit out a warning, and don't expose the vector data registers. We do provide access to the vector CSRs, because maybe they do work? It's just that we have no idea what the size of the data registers is. Change-Id: I6e9ffeb242e2e22fc62cb1b50782c2efb4ace0bd
Diffstat (limited to 'src/target/riscv/riscv.h')
-rw-r--r--src/target/riscv/riscv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/riscv/riscv.h b/src/target/riscv/riscv.h
index 7233579..ae8bdde 100644
--- a/src/target/riscv/riscv.h
+++ b/src/target/riscv/riscv.h
@@ -75,6 +75,7 @@ typedef struct {
/* It's possible that each core has a different supported ISA set. */
int xlen[RISCV_MAX_HARTS];
riscv_reg_t misa[RISCV_MAX_HARTS];
+ /* Cached value of vlenb. 0 if vlenb is not readable for some reason. */
unsigned vlenb[RISCV_MAX_HARTS];
/* The number of triggers per hart. */