ARM: Fix case where cond/uncond control is mis-specified
authorNathanael Premillieu <npremill@irisa.fr>
Wed, 21 Mar 2012 15:34:06 +0000 (10:34 -0500)
committerNathanael Premillieu <npremill@irisa.fr>
Wed, 21 Mar 2012 15:34:06 +0000 (10:34 -0500)
src/arch/arm/isa/templates/pred.isa

index 8d9d16492878b1f25fc150c61416abfa7ea864d7..efb8e470b5daca2ac56bc410c6d9e8b183703dd9 100644 (file)
@@ -112,9 +112,9 @@ def template DataRegConstructor {{
             flags[IsControl] = true;
             flags[IsIndirectControl] = true;
             if (condCode == COND_AL || condCode == COND_UC)
-                flags[IsCondControl] = true;
-            else
                 flags[IsUncondControl] = true;
+            else
+                flags[IsCondControl] = true;
         }
 
         if (%(is_ras_pop)s) {