OSDN Git Service

2003-07-09 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@specifix.com>
Wed, 23 Jul 2003 21:28:06 +0000 (21:28 +0000)
committerMichael Snyder <msnyder@specifix.com>
Wed, 23 Jul 2003 21:28:06 +0000 (21:28 +0000)
        * 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/ChangeLog
sim/sh/gencode.c

index 8a5e9e3..50a0e50 100644 (file)
@@ -1,3 +1,10 @@
+2003-07-09  Michael Snyder  <msnyder@redhat.com>
+
+       * 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  <msnyder@redhat.com>
 
        * gencode.c (movs): Fix a couple of text transpositions.
index e7b6b4d..f0af175 100644 (file)
@@ -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");