aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/qtmipsmachine.cpp
diff options
context:
space:
mode:
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);