Fix bug in support for trap instruction.
authorJim Wilson <wilson@tuliptree.org>
Fri, 27 Sep 2002 18:59:08 +0000 (18:59 +0000)
committerJim Wilson <wilson@tuliptree.org>
Fri, 27 Sep 2002 18:59:08 +0000 (18:59 +0000)
* simops (OP_10007E0): Don't subtract 4 from PC.

sim/v850/ChangeLog
sim/v850/simops.c

index e10f1dab3a56837df9b3862c5edde4c500af0f42..100ece186e5879c2db49184e8f7a6cd819524361 100644 (file)
@@ -1,3 +1,7 @@
+2002-09-26  Jim Wilson  <wilson@redhat.com>
+
+       * simops (OP_10007E0): Don't subtract 4 from PC.
+
 2002-09-19  Nick Clifton  <nickc@redhat.com>
 
        * interp.c (sim_open): Remove reference to v850ea.
index d8a4d58ae11334c3d3ca53b4c62cdfd23d8d9e7a..eba728fa287cdd88ee98d270ac62ae24aa8d8744 100644 (file)
@@ -1880,7 +1880,7 @@ OP_10007E0 ()
       ECR |= 0x40 + OP[0];
       /* Flag that we are now doing exception processing.  */
       PSW |= PSW_EP | PSW_ID;
-      PC = ((OP[0] < 0x10) ? 0x40 : 0x50) - 4;
+      PC = (OP[0] < 0x10) ? 0x40 : 0x50;
 
       return 0;
     }
This page took 0.030268 seconds and 4 git commands to generate.