From bd11856c5915ef52ca3325a27fca07049ab2215a Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Fri, 8 Feb 2019 13:53:32 +0100 Subject: Make function to register exception handler accessible from outside. Signed-off-by: Pavel Pisa --- qtmips_machine/qtmipsmachine.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'qtmips_machine/qtmipsmachine.cpp') 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); +} -- cgit v1.2.3