OSDN Git Service

target/i386/cpu.h: declare TCG_GUEST_DEFAULT_MO
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 28 Feb 2017 14:35:14 +0000 (14:35 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 9 Mar 2017 10:38:02 +0000 (10:38 +0000)
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).

Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/cpu.h

index ac2ad6d..fb09aee 100644 (file)
@@ -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