diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2018-05-31 23:42:13 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2018-05-31 23:42:13 -0700 |
commit | cdb4e1de4fe4016c22b860620860c4c2c5d90c9b (patch) | |
tree | cd241777b03d0729f511bf45341176999a1d00fb | |
parent | 6cbbf5317ee869cf6bc55e24a3ec25299637d17d (diff) | |
download | riscv-openocd-cdb4e1de4fe4016c22b860620860c4c2c5d90c9b.zip riscv-openocd-cdb4e1de4fe4016c22b860620860c4c2c5d90c9b.tar.gz riscv-openocd-cdb4e1de4fe4016c22b860620860c4c2c5d90c9b.tar.bz2 |
Clear that first error
-rw-r--r-- | src/target/riscv/riscv-013.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index cbbfd4a..aaf3713 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -2068,6 +2068,7 @@ static int read_memory_progbuf(struct target *target, target_addr_t address, AC_ACCESS_REGISTER_POSTEXEC); result = execute_abstract_command(target, command); if (result != ERROR_OK) { + riscv013_clear_abstract_error(target); /* Reading the first word failed, which is fine -- we just * assume this is some sort of before-memory read from Eclipse. * */ |