Merge pull request #52 from riscv/v11_read_without_int

riscv-v11: Don't perform unexpected operation in cache_write
This commit is contained in:
Megan Wachs
2017-05-25 10:51:27 -07:00
committed by GitHub
+1 -1
View File
@@ -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++) {