]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tcg/i386: fix build with -march < i686
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 25 Sep 2012 22:30:12 +0000 (00:30 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 9 Oct 2012 06:42:11 +0000 (01:42 -0500)
The movcond_i32 op has to be protected with TCG_TARGET_HAS_movcond_i32
to fix the build with -march < i686.

Thanks to Richard Henderson for the hint.

Reported-by: Alex Barcelo <abarcelo@ac.upc.edu>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tcg/i386/tcg-target.c

index 85c6b8159e2e32fb63007e317534a15953c83420..616ef232125766c2ebf8e8e83e1b7b1f0e70c8c6 100644 (file)
@@ -1907,7 +1907,9 @@ static const TCGTargetOpDef x86_op_defs[] = {
     { INDEX_op_setcond_i32, { "q", "r", "ri" } },
 
     { INDEX_op_deposit_i32, { "Q", "0", "Q" } },
+#if TCG_TARGET_HAS_movcond_i32
     { INDEX_op_movcond_i32, { "r", "r", "ri", "r", "0" } },
+#endif
 
 #if TCG_TARGET_REG_BITS == 32
     { INDEX_op_mulu2_i32, { "a", "d", "a", "r" } },