diff options
author | Tim Newsome <tim@sifive.com> | 2017-06-09 10:00:36 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2017-06-09 10:00:36 -0700 |
commit | 071610e2b21356a4d35c7f00d552f044214f738f (patch) | |
tree | 8370f7a757d96ae537feaa626fcf1d8aee17f9b3 /riscv | |
parent | 5307bcf478b6b1bf6d58aacdf1314464721ef179 (diff) | |
download | spike-071610e2b21356a4d35c7f00d552f044214f738f.zip spike-071610e2b21356a4d35c7f00d552f044214f738f.tar.gz spike-071610e2b21356a4d35c7f00d552f044214f738f.tar.bz2 |
Return success on writes to abstractauto
This bug was exposed by newer OpenOCD which actually checks the result.
Diffstat (limited to 'riscv')
-rw-r--r-- | riscv/debug_module.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/riscv/debug_module.cc b/riscv/debug_module.cc index db035e3..079ebd4 100644 --- a/riscv/debug_module.cc +++ b/riscv/debug_module.cc @@ -463,9 +463,11 @@ bool debug_module_t::dmi_write(unsigned address, uint32_t value) return true; case DMI_ABSTRACTAUTO: - abstractauto.autoexecprogbuf = get_field(value, DMI_ABSTRACTAUTO_AUTOEXECPROGBUF); - abstractauto.autoexecdata = get_field(value, DMI_ABSTRACTAUTO_AUTOEXECDATA); - break; + abstractauto.autoexecprogbuf = get_field(value, + DMI_ABSTRACTAUTO_AUTOEXECPROGBUF); + abstractauto.autoexecdata = get_field(value, + DMI_ABSTRACTAUTO_AUTOEXECDATA); + return true; } } return false; |