diff options
author | Karel Kočí <cynerd@email.cz> | 2018-01-01 20:44:34 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-01-01 20:47:36 +0100 |
commit | 92b6d05aed7cbfa7ddb0c5dcc61318c69c03bc97 (patch) | |
tree | 2b269c9a1fc3ebf104bad2171e8474c9ff79bf22 /qtmips_machine/qtmipsmachine.cpp | |
parent | f41bdf6dc71c3f3aa7b6d1dbb2e1b396718bbd8b (diff) | |
download | qtmips-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.cpp | 2 |
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); |