aboutsummaryrefslogtreecommitdiff
path: root/sim/v850/simops.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@tuliptree.org>2002-09-27 18:59:08 +0000
committerJim Wilson <wilson@tuliptree.org>2002-09-27 18:59:08 +0000
commit2e8162cedbdf51d15707960c7c63740fbcec25b7 (patch)
tree69a96013b89006da9a94e9a8eddfbcb33141d3d5 /sim/v850/simops.c
parente8cfbbd913a0cf00933333e14e962ecefb7d8740 (diff)
downloadgdb-2e8162cedbdf51d15707960c7c63740fbcec25b7.zip
gdb-2e8162cedbdf51d15707960c7c63740fbcec25b7.tar.gz
gdb-2e8162cedbdf51d15707960c7c63740fbcec25b7.tar.bz2
Fix bug in support for trap instruction.
* simops (OP_10007E0): Don't subtract 4 from PC.
Diffstat (limited to 'sim/v850/simops.c')
-rw-r--r--sim/v850/simops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/v850/simops.c b/sim/v850/simops.c
index d8a4d58..eba728f 100644
--- a/sim/v850/simops.c
+++ b/sim/v850/simops.c
@@ -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;
}