From 071610e2b21356a4d35c7f00d552f044214f738f Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Fri, 9 Jun 2017 10:00:36 -0700 Subject: [PATCH] Return success on writes to abstractauto This bug was exposed by newer OpenOCD which actually checks the result. --- riscv/debug_module.cc | 8 +++++--- 1 file 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; -- 2.30.2