diff options
author | Tim Newsome <tim@sifive.com> | 2019-07-15 10:33:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-15 10:33:52 -0700 |
commit | 9b34f8ca3c7b20131cb59cc2347cd88b4f2cb7fe (patch) | |
tree | e40244a78889f03e6a235f51e2d154e43f4cd7b1 | |
parent | 6983eda0e9d83c49af1366f4363efb570f5b79bd (diff) | |
download | riscv-openocd-9b34f8ca3c7b20131cb59cc2347cd88b4f2cb7fe.zip riscv-openocd-9b34f8ca3c7b20131cb59cc2347cd88b4f2cb7fe.tar.gz riscv-openocd-9b34f8ca3c7b20131cb59cc2347cd88b4f2cb7fe.tar.bz2 |
Write all ones to clear cmderr. (#389)
Change-Id: Ia76e749ed9f5a5f3509f253eeb69d1208bcfc929
-rw-r--r-- | src/target/riscv/riscv-013.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 8f73c83..47c1c86 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -3743,7 +3743,7 @@ void riscv013_clear_abstract_error(struct target *target) } } /* Clear the error status. */ - dmi_write(target, DMI_ABSTRACTCS, abstractcs & DMI_ABSTRACTCS_CMDERR); + dmi_write(target, DMI_ABSTRACTCS, DMI_ABSTRACTCS_CMDERR); } #ifdef _WIN32 |