aboutsummaryrefslogtreecommitdiff
path: root/tcg/i386
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2012-09-26 00:30:12 +0200
committerAurelien Jarno <aurelien@aurel32.net>2012-09-26 00:31:50 +0200
commitf813cb838f19ee8637d3c365659e6a6bb0c9c974 (patch)
tree4684d591ec075090d471f0911aefde2580bc2a64 /tcg/i386
parenta80a6b63e362cc8eda7aae5b4c3f9e4e49013d62 (diff)
downloadqemu-f813cb838f19ee8637d3c365659e6a6bb0c9c974.zip
qemu-f813cb838f19ee8637d3c365659e6a6bb0c9c974.tar.gz
qemu-f813cb838f19ee8637d3c365659e6a6bb0c9c974.tar.bz2
tcg/i386: fix build with -march < i686
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>
Diffstat (limited to 'tcg/i386')
-rw-r--r--tcg/i386/tcg-target.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c
index 122d636..0e218c8 100644
--- a/tcg/i386/tcg-target.c
+++ b/tcg/i386/tcg-target.c
@@ -1893,7 +1893,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" } },