From: Michael Snyder Date: Wed, 23 Jul 2003 21:28:06 +0000 (+0000) Subject: 2003-07-09 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c13a4caaf890f01ccb6fb7761ff87ff21ad4be4e;p=binutils-gdb.git 2003-07-09 Michael Snyder * gencode.c (ppi_gensim): For a conditional ppi insn, if the condition is false, we want to return (not break). A break will take us to the end of the function where registers will be updated, whereas the desired outcome is for nothing to change. --- diff --git a/sim/sh/ChangeLog b/sim/sh/ChangeLog index 8a5e9e3f0c8..50a0e506e13 100644 --- a/sim/sh/ChangeLog +++ b/sim/sh/ChangeLog @@ -1,3 +1,10 @@ +2003-07-09 Michael Snyder + + * gencode.c (ppi_gensim): For a conditional ppi insn, if the + condition is false, we want to return (not break). A break + will take us to the end of the function where registers will + be updated, whereas the desired outcome is for nothing to change. + 2003-07-03 Michael Snyder * gencode.c (movs): Fix a couple of text transpositions. diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c index e7b6b4dc548..f0af175c4ee 100644 --- a/sim/sh/gencode.c +++ b/sim/sh/gencode.c @@ -2469,7 +2469,7 @@ ppi_gensim () break; case 'c': printf (" if ((((iword >> 8) ^ DSR) & 1) == 0)\n"); - printf ("\tbreak;\n"); + printf ("\treturn;\n"); printf (" }\n"); printf (" case %d: \n", p->index + 1); printf (" {\n");