From: Doug Evans Date: Tue, 19 May 1998 23:52:23 +0000 (+0000) Subject: * sim-if.c (do_trap): Treat traps 2-15 as hardware does. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f99354d0c0787edfbeb0ab9517a407df86a29c3c;p=binutils-gdb.git * sim-if.c (do_trap): Treat traps 2-15 as hardware does. --- diff --git a/sim/m32r/ChangeLog b/sim/m32r/ChangeLog index cdbb9f7e37c..d5eaba5d208 100644 --- a/sim/m32r/ChangeLog +++ b/sim/m32r/ChangeLog @@ -1,3 +1,7 @@ +Tue May 19 16:45:33 1998 Doug Evans + + * sim-if.c (do_trap): Treat traps 2-15 as hardware does. + Sat May 16 13:04:30 1998 Doug Evans * sim-if.c (sim_stop): Update call to @cpu@_engine_stop. diff --git a/sim/m32r/sim-if.c b/sim/m32r/sim-if.c index 4e1c9831360..36c1644515f 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. */