aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHan Hartgers <Han.Hartgers@gmail.com>2019-06-17 20:39:31 +0200
committerTomas Vanek <vanekt@fbl.cz>2019-09-08 11:52:06 +0100
commit642a9310ca1942e97a6612c2f8cf132d933845de (patch)
treef2fa3195d1c01c8f97aa99f73baa7cdf1a2fbdcf
parent844c82934ed5f23b62326870f9d7818afce7c4f6 (diff)
downloadriscv-openocd-642a9310ca1942e97a6612c2f8cf132d933845de.zip
riscv-openocd-642a9310ca1942e97a6612c2f8cf132d933845de.tar.gz
riscv-openocd-642a9310ca1942e97a6612c2f8cf132d933845de.tar.bz2
target/dsp563xx: dsp563xx restore reg support
Added "exist=true" field to the reg_list struct to make access to the dsp563xx registers again possible. Without it defaults to exist=false and all the reg related functions will return nothing. Fixes regression from b5964191f0d2fc3ace607af001df3d57cbfbaf2b Change-Id: I9c256346735b8d66919c4ba83f528a8afca46ff9 Signed-off-by: Han Hartgers <han.hartgers@gmail.com> Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/5239 Tested-by: jenkins
-rw-r--r--src/target/dsp563xx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/dsp563xx.c b/src/target/dsp563xx.c
index ef7a31a..6a5c868 100644
--- a/src/target/dsp563xx.c
+++ b/src/target/dsp563xx.c
@@ -475,6 +475,7 @@ static void dsp563xx_build_reg_cache(struct target *target)
reg_list[i].value = calloc(1, 4);
reg_list[i].dirty = false;
reg_list[i].valid = false;
+ reg_list[i].exist = true;
reg_list[i].type = &dsp563xx_reg_type;
reg_list[i].arch_info = &arch_info[i];
}