aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r/sim-if.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/m32r/sim-if.c')
-rw-r--r--sim/m32r/sim-if.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sim/m32r/sim-if.c b/sim/m32r/sim-if.c
index 4e1c983..36c1644 100644
--- a/sim/m32r/sim-if.c
+++ b/sim/m32r/sim-if.c
@@ -487,8 +487,10 @@ do_trap (SIM_CPU *current_cpu, int num)
break;
default :
- /* Unless in the operating environment, ignore other traps. */
- break;
+ {
+ USI new_pc = num * 4;
+ return new_pc;
+ }
}
/* Fake an "rte" insn. */