From: Tim Newsome Date: Fri, 9 Jun 2017 17:00:36 +0000 (-0700) Subject: Return success on writes to abstractauto X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=071610e2b21356a4d35c7f00d552f044214f738f;p=riscv-isa-sim.git Return success on writes to abstractauto This bug was exposed by newer OpenOCD which actually checks the result. --- 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;