Revert "Try saving the halted state when examining a target"

This reverts commit f1e8dee522.
This commit is contained in:
Palmer Dabbelt 2018-05-30 06:00:30 -07:00
parent 2ec501a8b3
commit 395592ece3
1 changed files with 1 additions and 5 deletions

View File

@ -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)