diff options
-rw-r--r-- | qtmips_machine/qtmipsmachine.cpp | 6 | ||||
-rw-r--r-- | qtmips_machine/qtmipsmachine.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/qtmips_machine/qtmipsmachine.cpp b/qtmips_machine/qtmipsmachine.cpp index b691645..2942bec 100644 --- a/qtmips_machine/qtmipsmachine.cpp +++ b/qtmips_machine/qtmipsmachine.cpp @@ -199,3 +199,9 @@ void QtMipsMachine::set_status(enum Status st) { if (change) emit status_change(st); } + +void QtMipsMachine::register_exception_handler(ExceptionCause excause, + ExceptionHandler *exhandler) { + if (cr != nullptr) + cr->register_exception_handler(excause, exhandler); +} diff --git a/qtmips_machine/qtmipsmachine.h b/qtmips_machine/qtmipsmachine.h index 48dc786..7a128f6 100644 --- a/qtmips_machine/qtmipsmachine.h +++ b/qtmips_machine/qtmipsmachine.h @@ -77,6 +77,8 @@ public: enum Status status(); bool exited(); + void register_exception_handler(ExceptionCause excause, ExceptionHandler *exhandler); + public slots: void play(); void pause(); |