diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-03-06 23:48:24 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-03-06 23:48:24 +0100 |
commit | 3360c7a27865f16441d744fd4559a30e5b5dd7db (patch) | |
tree | edc3f441039eb6eb3c039492961ba9c9915b9725 | |
parent | 8d0f4806a7ad55710cb190e5a5c9388bd00c50a8 (diff) | |
download | qtmips-3360c7a27865f16441d744fd4559a30e5b5dd7db.tar.gz qtmips-3360c7a27865f16441d744fd4559a30e5b5dd7db.tar.bz2 qtmips-3360c7a27865f16441d744fd4559a30e5b5dd7db.zip |
Correct exception setup - break and HW break should cause stop and step over.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
-rw-r--r-- | qtmips_machine/qtmipsmachine.cpp | 5 |
1 files 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()); |