From 395592ece37b5a861d15bd8afadb92c2ac89c13c Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Wed, 30 May 2018 06:00:30 -0700 Subject: [PATCH] Revert "Try saving the halted state when examining a target" This reverts commit f1e8dee522043b8c8ae0255ade9f5ccdc89eb474. --- src/target/riscv/riscv.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index a6ebd51b0..74f1c7eca 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -692,11 +692,7 @@ static int riscv_examine(struct target *target) if (result != ERROR_OK) return result; - int result = tt->examine(target); - if (result != ERROR_OK) - return result; - - target->state = riscv_is_halted(target) ? TARGET_HALTED : TARGET_RUNNING; + return tt->examine(target); } static int oldriscv_poll(struct target *target)