]> git.gag.com Git - fw/openocd/commitdiff
target/dsp563xx: dsp563xx restore reg support
authorHan Hartgers <Han.Hartgers@gmail.com>
Mon, 17 Jun 2019 18:39:31 +0000 (20:39 +0200)
committerTomas Vanek <vanekt@fbl.cz>
Sun, 8 Sep 2019 10:52:06 +0000 (11:52 +0100)
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
src/target/dsp563xx.c

index ef7a31aa65cc928727426acd2070dc5f434e24a6..6a5c8683ef8922e4b4292b023e1827c7e14c12a6 100644 (file)
@@ -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];
        }