From: Jeff Law Date: Mon, 16 Dec 1996 22:31:37 +0000 (+0000) Subject: * simops.c: Handle "break" instruction. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=093e9a32d3f35c917c457d16e2286cf6e857ef83;p=binutils-gdb.git * simops.c: Handle "break" instruction. --- diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog index 69a7b4dcc46..db9a6d2c1f2 100644 --- a/sim/mn10300/ChangeLog +++ b/sim/mn10300/ChangeLog @@ -1,5 +1,7 @@ Mon Dec 16 10:03:52 1996 Jeffrey A Law (law@cygnus.com) + * simops.c: Handle "break" instruction. + * simops.c: Fix restoring the PC for "ret" and "retf" instructions. Wed Dec 11 09:53:10 1996 Jeffrey A Law (law@cygnus.com) diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c index ff0a9159460..b406c41c6e3 100644 --- a/sim/mn10300/simops.c +++ b/sim/mn10300/simops.c @@ -3071,3 +3071,13 @@ void OP_F670 (insn, extension) { abort (); } + +/* breakpoint */ +void +OP_FF (insn, extension) + unsigned long insn, extension; +{ + State.exception = SIGTRAP; + PC -= 1; +} +