target/etb: Use 'bool' data type
Change-Id: I536036b15af10bb1879dbbec84576134fd3dce35 Signed-off-by: Marc Schink <openocd-dev@marcschink.de> Reviewed-on: http://openocd.zylin.com/4966 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
0118dc5e47
commit
61a55f6278
|
@ -143,8 +143,8 @@ struct reg_cache *etb_build_reg_cache(struct etb *etb)
|
|||
for (i = 0; i < num_regs; i++) {
|
||||
reg_list[i].name = etb_reg_list[i];
|
||||
reg_list[i].size = 32;
|
||||
reg_list[i].dirty = 0;
|
||||
reg_list[i].valid = 0;
|
||||
reg_list[i].dirty = false;
|
||||
reg_list[i].valid = false;
|
||||
reg_list[i].value = calloc(1, 4);
|
||||
reg_list[i].arch_info = &arch_info[i];
|
||||
reg_list[i].type = &etb_reg_type;
|
||||
|
@ -272,8 +272,8 @@ static int etb_set_reg(struct reg *reg, uint32_t value)
|
|||
}
|
||||
|
||||
buf_set_u32(reg->value, 0, reg->size, value);
|
||||
reg->valid = 1;
|
||||
reg->dirty = 0;
|
||||
reg->valid = true;
|
||||
reg->dirty = false;
|
||||
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue