From a01496e6d9e0b4cac681c26e08bb9b882da52266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Fri, 2 Mar 2018 12:43:25 -0500 Subject: [PATCH] target/i386/cpu.h: declare TCG_GUEST_DEFAULT_MO This suppresses the incorrect warning when forcing MTTCG for x86 guests on x86 hosts. A future patch will still warn when TARGET_SUPPORT_MTTCG hasn't been defined for the guest (which is still pending for x86). Backports commit 72c1701f62e8d44eb24a0583a958edc280105455 from qemu --- qemu/target/i386/cpu.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qemu/target/i386/cpu.h b/qemu/target/i386/cpu.h index 3c0a33d1..fa024907 100644 --- a/qemu/target/i386/cpu.h +++ b/qemu/target/i386/cpu.h @@ -30,6 +30,9 @@ #define TARGET_LONG_BITS 32 #endif +/* The x86 has a strong memory model with some store-after-load re-ordering */ +#define TCG_GUEST_DEFAULT_MO (TCG_MO_ALL & ~TCG_MO_ST_LD) + /* Maximum instruction code size */ #define TARGET_MAX_INSN_SIZE 16