* sim-if.c (do_trap): Treat traps 2-15 as hardware does.
authorDoug Evans <dje@google.com>
Tue, 19 May 1998 23:52:23 +0000 (23:52 +0000)
committerDoug Evans <dje@google.com>
Tue, 19 May 1998 23:52:23 +0000 (23:52 +0000)
sim/m32r/ChangeLog
sim/m32r/sim-if.c

index cdbb9f7e37c98cb10ea361e1a754f20b026609f0..d5eaba5d20861e7b4c56110416fae3534e9513cc 100644 (file)
@@ -1,3 +1,7 @@
+Tue May 19 16:45:33 1998  Doug Evans  <devans@seba.cygnus.com>
+
+       * sim-if.c (do_trap): Treat traps 2-15 as hardware does.
+
 Sat May 16 13:04:30 1998  Doug Evans  <devans@seba.cygnus.com>
 
        * sim-if.c (sim_stop): Update call to @cpu@_engine_stop.
index 4e1c9831360c554b6c05f58b5206ab664cb3bded..36c1644515f7f19de6d9541711d13b8fef7ddb4e 100644 (file)
@@ -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.  */