Fix bug in support for trap instruction.

* simops (OP_10007E0): Don't subtract 4 from PC.
This commit is contained in:
Jim Wilson 2002-09-27 18:59:08 +00:00
parent e8cfbbd913
commit 2e8162cedb
2 changed files with 5 additions and 1 deletions

View 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.

View 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;
}