diff options
author | Tim Newsome <tim@sifive.com> | 2022-04-27 12:46:09 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2022-04-27 12:46:09 -0700 |
commit | dc320d26f03d2a9932947c3eb2f065bd35c80f44 (patch) | |
tree | 75bc054732bb9b6d8fd4f9593f0b4f9061f25ac2 | |
parent | e8b05455e21079d0e0698235bf4b85bda6023875 (diff) | |
download | riscv-openocd-dc320d26f03d2a9932947c3eb2f065bd35c80f44.zip riscv-openocd-dc320d26f03d2a9932947c3eb2f065bd35c80f44.tar.gz riscv-openocd-dc320d26f03d2a9932947c3eb2f065bd35c80f44.tar.bz2 |
Small code cleanup.
Change-Id: I563b7c62494987287b13d9ed52a923e6f49a64be
-rw-r--r-- | src/target/riscv/riscv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index 484db74..174568f 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -1025,8 +1025,6 @@ int riscv_remove_watchpoint(struct target *target, * and new value. */ int riscv_hit_watchpoint(struct target *target, struct watchpoint **hit_watchpoint) { - struct watchpoint *wp = target->watchpoints; - LOG_DEBUG("Current hartid = %d", riscv_current_hartid(target)); /*TODO instead of disassembling the instruction that we think caused the @@ -1081,6 +1079,7 @@ int riscv_hit_watchpoint(struct target *target, struct watchpoint **hit_watchpoi return ERROR_FAIL; } + struct watchpoint *wp = target->watchpoints; while (wp) { /*TODO support length/mask */ if (wp->address == mem_addr) { |