diff options
author | Marc Schink <dev@zapb.de> | 2021-06-17 15:50:47 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-06-26 14:40:34 +0100 |
commit | 873e5c3976eb82589d5a645266b6ae75cb4c2ecf (patch) | |
tree | 099d504ada7716bbe639ca89e116478c0ffeb024 /src | |
parent | 56b72b33cfc7014e001fa9e209b62f4b6c009fb5 (diff) | |
download | riscv-openocd-873e5c3976eb82589d5a645266b6ae75cb4c2ecf.zip riscv-openocd-873e5c3976eb82589d5a645266b6ae75cb4c2ecf.tar.gz riscv-openocd-873e5c3976eb82589d5a645266b6ae75cb4c2ecf.tar.bz2 |
target/dsp563xx: Use bool data type for 'hardware_breakpoints_cleared'
Change-Id: Ic18973d3e90d74c211b48627bdaac4cf3357b682
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: http://openocd.zylin.com/6324
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/target/dsp563xx.c | 4 | ||||
-rw-r--r-- | src/target/dsp563xx.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/target/dsp563xx.c b/src/target/dsp563xx.c index 7305733..5ad52b5 100644 --- a/src/target/dsp563xx.c +++ b/src/target/dsp563xx.c @@ -913,7 +913,7 @@ static int dsp563xx_init_target(struct command_context *cmd_ctx, struct target * dsp563xx_build_reg_cache(target); struct dsp563xx_common *dsp563xx = target_to_dsp563xx(target); - dsp563xx->hardware_breakpoints_cleared = 0; + dsp563xx->hardware_breakpoints_cleared = false; dsp563xx->hardware_breakpoint[0].used = BPU_NONE; return ERROR_OK; @@ -1096,7 +1096,7 @@ static int dsp563xx_poll(struct target *target) if (err != ERROR_OK) return err; - dsp563xx->hardware_breakpoints_cleared = 1; + dsp563xx->hardware_breakpoints_cleared = true; } return ERROR_OK; diff --git a/src/target/dsp563xx.h b/src/target/dsp563xx.h index 18428b8..5c3e1d3 100644 --- a/src/target/dsp563xx.h +++ b/src/target/dsp563xx.h @@ -52,7 +52,7 @@ struct dsp563xx_common { struct hardware_breakpoint hardware_breakpoint[1]; /*Were the hardware breakpoints cleared on startup?*/ - int hardware_breakpoints_cleared; + bool hardware_breakpoints_cleared; }; struct dsp563xx_core_reg { |