From 3360c7a27865f16441d744fd4559a30e5b5dd7db Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Wed, 6 Mar 2019 23:48:24 +0100 Subject: Correct exception setup - break and HW break should cause stop and step over. Signed-off-by: Pavel Pisa --- qtmips_machine/qtmipsmachine.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qtmips_machine/qtmipsmachine.cpp b/qtmips_machine/qtmipsmachine.cpp index c8b072b..e047167 100644 --- a/qtmips_machine/qtmipsmachine.cpp +++ b/qtmips_machine/qtmipsmachine.cpp @@ -98,10 +98,9 @@ QtMipsMachine::QtMipsMachine(const MachineConfig &cc, bool load_symtab) : for (int i = 0; i < EXCAUSE_COUNT; i++) { if (i != EXCAUSE_INT && i != EXCAUSE_BREAK && i != EXCAUSE_HWBREAK) { - + set_stop_on_exception((enum ExceptionCause)i, cc.osemu_exception_stop()); + set_step_over_exception((enum ExceptionCause)i, cc.osemu_exception_stop()); } - set_stop_on_exception((enum ExceptionCause)i, cc.osemu_exception_stop()); - set_step_over_exception((enum ExceptionCause)i, cc.osemu_exception_stop()); } set_stop_on_exception(EXCAUSE_INT, cc.osemu_interrupt_stop()); -- cgit v1.2.3