Fix style issues

This commit is contained in:
Craig Blackmore 2018-07-23 10:44:20 +01:00
parent e2717e4cfa
commit 43e7e4b60a
2 changed files with 4 additions and 5 deletions

View File

@ -1852,9 +1852,8 @@ static int handle_halt(struct target *target, bool announce)
* which watchpoint to step over. Setting need_strict_step to true * which watchpoint to step over. Setting need_strict_step to true
* flags OpenOCD to disable triggers -> step -> enable triggers on * flags OpenOCD to disable triggers -> step -> enable triggers on
* the next step or resume*/ * the next step or resume*/
if (! riscv_breakpoint_hit(target, 0, info->dpc)) { if (!riscv_breakpoint_hit(target, 0, info->dpc))
info->need_strict_step = true; info->need_strict_step = true;
}
break; break;
case DCSR_CAUSE_DEBUGINT: case DCSR_CAUSE_DEBUGINT:
target->debug_reason = DBG_REASON_DBGRQ; target->debug_reason = DBG_REASON_DBGRQ;

View File

@ -2032,12 +2032,12 @@ bool riscv_breakpoint_hit(struct target *target, int hartid, uint64_t dpc)
if (tdata2 == dpc) { if (tdata2 == dpc) {
LOG_DEBUG("breakpoint %d matches dpc", t); LOG_DEBUG("breakpoint %d matches dpc", t);
hit = true; hit = true;
break; break;
} }
} }
// restore tselect /* restore tselect */
riscv_set_register_on_hart(target, hartid, GDB_REGNO_TSELECT, tselect); riscv_set_register_on_hart(target, hartid, GDB_REGNO_TSELECT, tselect);
LOG_DEBUG("no breakpoint matches dpc"); LOG_DEBUG("no breakpoint matches dpc");