target/register: Use 'bool' data type
Change-Id: I3633ced9cb2bfe6afb0ef49aa42fd1b54f155a66 Signed-off-by: Marc Schink <openocd-dev@marcschink.de> Reviewed-on: http://openocd.zylin.com/4951 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>reverse-resume-order
parent
351ef7bf3c
commit
92f51c50ae
|
@ -88,8 +88,8 @@ void register_cache_invalidate(struct reg_cache *cache)
|
||||||
for (unsigned n = cache->num_regs; n != 0; n--, reg++) {
|
for (unsigned n = cache->num_regs; n != 0; n--, reg++) {
|
||||||
if (reg->exist == false)
|
if (reg->exist == false)
|
||||||
continue;
|
continue;
|
||||||
reg->valid = 0;
|
reg->valid = false;
|
||||||
reg->dirty = 0;
|
reg->dirty = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,8 +100,8 @@ static int register_get_dummy_core_reg(struct reg *reg)
|
||||||
|
|
||||||
static int register_set_dummy_core_reg(struct reg *reg, uint8_t *buf)
|
static int register_set_dummy_core_reg(struct reg *reg, uint8_t *buf)
|
||||||
{
|
{
|
||||||
reg->dirty = 1;
|
reg->dirty = true;
|
||||||
reg->valid = 1;
|
reg->valid = true;
|
||||||
|
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue