aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2020-06-18 12:23:38 -0700
committerTim Newsome <tim@sifive.com>2020-06-18 12:23:38 -0700
commit0473e317b0dbc0e86185514775540e84b0cc3820 (patch)
tree8eee5a0325c7bfec757c6b6e5d310cff8aee5272
parent56d1c6ae6c93a11bb807b6399c7fb84146937dd0 (diff)
downloadriscv-openocd-manual_hwbp.zip
riscv-openocd-manual_hwbp.tar.gz
riscv-openocd-manual_hwbp.tar.bz2
Fix whitespace.manual_hwbp
Change-Id: Icc240aecbc7e3e36ce4e4d784f5703304334ca13
-rw-r--r--src/target/riscv/riscv.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c
index 3920961..65b60cd 100644
--- a/src/target/riscv/riscv.c
+++ b/src/target/riscv/riscv.c
@@ -1288,11 +1288,9 @@ static int enable_triggers(struct target *target, riscv_reg_t *state)
} else {
struct watchpoint *watchpoint = target->watchpoints;
int i = 0;
- while (watchpoint)
- {
+ while (watchpoint) {
LOG_DEBUG("watchpoint %d: cleared=%" PRId64, i, state[i]);
- if (state[i])
- {
+ if (state[i]) {
if (riscv_add_watchpoint(target, watchpoint) != ERROR_OK)
return ERROR_FAIL;
}