aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2018-05-30 00:59:41 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2018-05-30 00:59:41 -0700
commit755bf8d5584c1f2436160059a8b7accaa57ae2d4 (patch)
tree9b96b0fef494d556aabbb5f5281815f5f205f7c3
parenta2d118f8e47486c708e041e1061ddee8a6e5fdad (diff)
downloadriscv-openocd-755bf8d5584c1f2436160059a8b7accaa57ae2d4.zip
riscv-openocd-755bf8d5584c1f2436160059a8b7accaa57ae2d4.tar.gz
riscv-openocd-755bf8d5584c1f2436160059a8b7accaa57ae2d4.tar.bz2
Revert "Don't raise HALT when we're examining a target"
This reverts commit dd382bb6fb294c384dbab19e19a03dd7995cec27.
-rw-r--r--src/target/riscv/riscv.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c
index 490a263..9c00c43 100644
--- a/src/target/riscv/riscv.c
+++ b/src/target/riscv/riscv.c
@@ -1091,11 +1091,7 @@ int riscv_openocd_poll(struct target *target)
}
target->state = TARGET_HALTED;
- /* Only produce a TARGET_EVENT_HALTED callback if we've already
- * examined this target, as polls during examination shouldn't be
- * raising events. */
- if (target_was_examined(target))
- target_call_event_callbacks(target, TARGET_EVENT_HALTED);
+ target_call_event_callbacks(target, TARGET_EVENT_HALTED);
debug_level = old_debug_level;
return ERROR_OK;
}