mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
Fix bug in support for trap instruction.
* simops (OP_10007E0): Don't subtract 4 from PC.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user