riscv-v11: Don't perform unexpected operation in cache_write

release
Megan Wachs 2017-05-22 22:02:01 -07:00
parent c431c0eb25
commit e12f5575ef
1 changed files with 1 additions and 1 deletions

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++) {