aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-03-22 14:28:39 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2017-03-22 14:28:39 -0700
commit5f9cc2ce5fd2a72919b87e4738cc0ff589948dfd (patch)
tree203571ac5d027bfd4330962ab16d04155663fae0
parent98420e377a946c825960a6d6104c209caa1faf6c (diff)
downloadriscv-openocd-5f9cc2ce5fd2a72919b87e4738cc0ff589948dfd.zip
riscv-openocd-5f9cc2ce5fd2a72919b87e4738cc0ff589948dfd.tar.gz
riscv-openocd-5f9cc2ce5fd2a72919b87e4738cc0ff589948dfd.tar.bz2
Turn off autoexec after read_memory()
-rw-r--r--src/target/riscv/riscv-013.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c
index e67d69a..03ae353 100644
--- a/src/target/riscv/riscv-013.c
+++ b/src/target/riscv/riscv-013.c
@@ -1888,6 +1888,7 @@ static int read_memory(struct target *target, uint32_t address,
return ERROR_FAIL;
}
}
+ dmi_write(target, DMI_ABSTRACTAUTO, 0);
dmi_write(target, DMI_ABSTRACTCS, DMI_ABSTRACTCS_CMDERR);
abstractcs = dmi_read(target, DMI_ABSTRACTCS);
if (get_field(abstractcs, DMI_ABSTRACTCS_CMDERR)) {