diff options
author | Megan Wachs <megan@sifive.com> | 2017-05-25 10:51:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-25 10:51:27 -0700 |
commit | a1e07e58f4edbea92830fc75965a18b7b5030e17 (patch) | |
tree | 8984b529d7e9865f25430c9b3e45c97af3040737 | |
parent | c431c0eb251bf6d02959a6f55be3baba04552b5d (diff) | |
parent | e12f5575ef408fc83b66851b8c2ed05503509a49 (diff) | |
download | riscv-openocd-a1e07e58f4edbea92830fc75965a18b7b5030e17.zip riscv-openocd-a1e07e58f4edbea92830fc75965a18b7b5030e17.tar.gz riscv-openocd-a1e07e58f4edbea92830fc75965a18b7b5030e17.tar.bz2 |
Merge pull request #52 from riscv/v11_read_without_int
riscv-v11: Don't perform unexpected operation in cache_write
-rw-r--r-- | src/target/riscv/riscv-011.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/riscv/riscv-011.c b/src/target/riscv/riscv-011.c index 8663082..6ed3ba1 100644 --- a/src/target/riscv/riscv-011.c +++ b/src/target/riscv/riscv-011.c @@ -872,7 +872,7 @@ static int cache_write(struct target *target, unsigned int address, bool run) if (last == info->dramsize) { // Nothing needs to be written to RAM. - dbus_write(target, DMCONTROL, DMCONTROL_HALTNOT | DMCONTROL_INTERRUPT); + dbus_write(target, DMCONTROL, DMCONTROL_HALTNOT | (run ? DMCONTROL_INTERRUPT : 0)); } else { for (unsigned int i = 0; i < info->dramsize; i++) { |