forked from auracaster/openocd
target: use boolean values for 'valid' and 'dirty' flags
Convert to boolean the remaining numeric assignment and comparison Change-Id: Idc25221d93e85236185aab9ee36f0a379939c89c Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7961 Reviewed-by: zapb <dev@zapb.de> Tested-by: jenkins
This commit is contained in:
@@ -625,8 +625,8 @@ static int mips_mips64_resume(struct target *target, int current,
|
||||
/* current = 1: continue on current pc, otherwise continue at <address> */
|
||||
if (!current) {
|
||||
buf_set_u64(pc->value, 0, 64, address);
|
||||
pc->dirty = 1;
|
||||
pc->valid = 1;
|
||||
pc->dirty = true;
|
||||
pc->valid = true;
|
||||
}
|
||||
|
||||
resume_pc = buf_get_u64(pc->value, 0, 64);
|
||||
@@ -717,8 +717,8 @@ static int mips_mips64_step(struct target *target, int current,
|
||||
* <address> */
|
||||
if (!current) {
|
||||
buf_set_u64(pc->value, 0, 64, address);
|
||||
pc->dirty = 1;
|
||||
pc->valid = 1;
|
||||
pc->dirty = true;
|
||||
pc->valid = true;
|
||||
}
|
||||
|
||||
/* the front-end may request us not to handle breakpoints */
|
||||
|
||||
Reference in New Issue
Block a user