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>
This commit is contained in:
Marc Schink 2021-06-17 15:50:47 +02:00 committed by Antonio Borneo
parent 56b72b33cf
commit 873e5c3976
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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 {