aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/qtmipsmachine.cpp
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-01 20:44:34 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-01 20:47:36 +0100
commit92b6d05aed7cbfa7ddb0c5dcc61318c69c03bc97 (patch)
tree2b269c9a1fc3ebf104bad2171e8474c9ff79bf22 /qtmips_machine/qtmipsmachine.cpp
parentf41bdf6dc71c3f3aa7b6d1dbb2e1b396718bbd8b (diff)
downloadqtmips-92b6d05aed7cbfa7ddb0c5dcc61318c69c03bc97.tar.gz
qtmips-92b6d05aed7cbfa7ddb0c5dcc61318c69c03bc97.tar.bz2
qtmips-92b6d05aed7cbfa7ddb0c5dcc61318c69c03bc97.zip
Fix how we pass exception
Previous implementation reseted caught exception to type QtMipsException so we lost possibility to check for object type later on.
Diffstat (limited to 'qtmips_machine/qtmipsmachine.cpp')
-rw-r--r--qtmips_machine/qtmipsmachine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_machine/qtmipsmachine.cpp b/qtmips_machine/qtmipsmachine.cpp
index 102dff0..6593dd0 100644
--- a/qtmips_machine/qtmipsmachine.cpp
+++ b/qtmips_machine/qtmipsmachine.cpp
@@ -94,7 +94,7 @@ void QtMipsMachine::step() {
emit tick();
try {
cr->step();
- } catch (QtMipsException e) {
+ } catch (QtMipsException &e) {
run_t->stop();
set_status(ST_TRAPPED);
emit program_trap(e);