From c13a4caaf890f01ccb6fb7761ff87ff21ad4be4e Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Wed, 23 Jul 2003 21:28:06 +0000 Subject: 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. --- sim/sh/gencode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/sh/gencode.c') diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c index e7b6b4d..f0af175 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"); -- cgit v1.1