From bbbe41e6365732a489d76b3bac5f5fafd0208482 Mon Sep 17 00:00:00 2001 From: Megan Wachs Date: Mon, 17 Apr 2017 14:11:43 -0700 Subject: [PATCH] debug: Compiles again with new debug_defines.h file, but not tested. --- riscv/debug_module.cc | 14 ++++---------- riscv/riscv.mk.in | 2 -- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/riscv/debug_module.cc b/riscv/debug_module.cc index 43dc737..7b113ab 100644 --- a/riscv/debug_module.cc +++ b/riscv/debug_module.cc @@ -369,16 +369,10 @@ bool debug_module_t::perform_abstract_command() write32(debug_rom_code, 1, ebreak()); } - if (get_field(command, AC_ACCESS_REGISTER_PREEXEC)) { - write32(debug_rom_entry, dmcontrol.hartsel, - jal(ZERO, DEBUG_RAM_START - (DEBUG_ROM_ENTRY + 4 * dmcontrol.hartsel))); - next_action = - jal(ZERO, DEBUG_ROM_CODE - (DEBUG_ROM_ENTRY + 4 * dmcontrol.hartsel)); - } else { - write32(debug_rom_entry, dmcontrol.hartsel, - jal(ZERO, DEBUG_ROM_CODE - (DEBUG_ROM_ENTRY + 4 * dmcontrol.hartsel))); - } - + //TODO: Consider 'transfer' bit. + write32(debug_rom_entry, dmcontrol.hartsel, + jal(ZERO, DEBUG_ROM_CODE - (DEBUG_ROM_ENTRY + 4 * dmcontrol.hartsel))); + write32(debug_rom_exception, dmcontrol.hartsel, jal(ZERO, (DEBUG_ROM_ENTRY + 4 * dmcontrol.hartsel) - DEBUG_ROM_EXCEPTION)); abstractcs.busy = true; diff --git a/riscv/riscv.mk.in b/riscv/riscv.mk.in index 9cd8f4d..40054cf 100644 --- a/riscv/riscv.mk.in +++ b/riscv/riscv.mk.in @@ -45,9 +45,7 @@ riscv_srcs = \ regnames.cc \ devices.cc \ rom.cc \ - rtc.cc \ clint.cc \ - gdbserver.cc \ debug_module.cc \ remote_bitbang.cc \ jtag_dtm.cc \ -- 2.30.2