From: Nick Clifton Date: Wed, 29 Sep 2010 15:47:45 +0000 (+0000) Subject: * rx.c (decode_opcode: RXO_int): Only break out of the emulation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f79eb72c24bb79e981896542831374b54fb96ba;p=binutils-gdb.git * rx.c (decode_opcode: RXO_int): Only break out of the emulation loop if rx_syscall() does not return a RX_STEPPED result. --- diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog index ed363dafca2..4da59659d4a 100644 --- a/sim/rx/ChangeLog +++ b/sim/rx/ChangeLog @@ -1,3 +1,8 @@ +2010-09-29 Nick Clifton + + * rx.c (decode_opcode: RXO_int): Only break out of the emulation + loop if rx_syscall() does not return a RX_STEPPED result. + 2010-09-23 Kevin Buettner * rx.c (decode_opcode): Add cycle information for RXO_smovu. diff --git a/sim/rx/rx.c b/sim/rx/rx.c index 17f5b46f4af..247d6247ad9 100644 --- a/sim/rx/rx.c +++ b/sim/rx/rx.c @@ -1232,7 +1232,9 @@ decode_opcode () v = GS (); if (v == 255) { - DO_RETURN (rx_syscall (regs.r[5])); + int rc = rx_syscall (regs.r[5]); + if (! RX_STEPPED (rc)) + DO_RETURN (rc); } else {