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:
parent
56b72b33cf
commit
873e5c3976
|
@ -913,7 +913,7 @@ static int dsp563xx_init_target(struct command_context *cmd_ctx, struct target *
|
||||||
dsp563xx_build_reg_cache(target);
|
dsp563xx_build_reg_cache(target);
|
||||||
struct dsp563xx_common *dsp563xx = target_to_dsp563xx(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;
|
dsp563xx->hardware_breakpoint[0].used = BPU_NONE;
|
||||||
|
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
|
@ -1096,7 +1096,7 @@ static int dsp563xx_poll(struct target *target)
|
||||||
if (err != ERROR_OK)
|
if (err != ERROR_OK)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
dsp563xx->hardware_breakpoints_cleared = 1;
|
dsp563xx->hardware_breakpoints_cleared = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
|
|
|
@ -52,7 +52,7 @@ struct dsp563xx_common {
|
||||||
struct hardware_breakpoint hardware_breakpoint[1];
|
struct hardware_breakpoint hardware_breakpoint[1];
|
||||||
|
|
||||||
/*Were the hardware breakpoints cleared on startup?*/
|
/*Were the hardware breakpoints cleared on startup?*/
|
||||||
int hardware_breakpoints_cleared;
|
bool hardware_breakpoints_cleared;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct dsp563xx_core_reg {
|
struct dsp563xx_core_reg {
|
||||||
|
|
Loading…
Reference in New Issue