From 5f9cc2ce5fd2a72919b87e4738cc0ff589948dfd Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Wed, 22 Mar 2017 14:28:39 -0700 Subject: [PATCH] Turn off autoexec after read_memory() --- src/target/riscv/riscv-013.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index e67d69a3e..03ae35372 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)) {