aboutsummaryrefslogtreecommitdiff
path: root/src/target/xscale.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-05 07:11:12 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-05 07:11:12 +0000
commit18293612537125c8864d4627c7c4b2b4ba7cc882 (patch)
treeac6aaec4091dad07099f0fad2445755c69d79418 /src/target/xscale.c
parent3a4896182036eb472a06f66be3710d5c228b6748 (diff)
downloadriscv-openocd-18293612537125c8864d4627c7c4b2b4ba7cc882.zip
riscv-openocd-18293612537125c8864d4627c7c4b2b4ba7cc882.tar.gz
riscv-openocd-18293612537125c8864d4627c7c4b2b4ba7cc882.tar.bz2
define resetting the target into the halted or running
state as an atomic operation. git-svn-id: svn://svn.berlios.de/openocd/trunk@888 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/xscale.c')
-rw-r--r--src/target/xscale.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/target/xscale.c b/src/target/xscale.c
index 3e957a5..0c99abf 100644
--- a/src/target/xscale.c
+++ b/src/target/xscale.c
@@ -1579,6 +1579,13 @@ int xscale_assert_reset(target_t *target)
jtag_execute_queue();
target->state = TARGET_RESET;
+
+ if (target->reset_halt)
+ {
+ int retval;
+ if ((retval = target_halt(target))!=ERROR_OK)
+ return retval;
+ }
return ERROR_OK;
}