]> Git Repo - qemu.git/commitdiff
target/s390x: define TCG_GUEST_DEFAULT_MO for MTTCG
authorAlex Bennée <[email protected]>
Fri, 18 Jan 2019 17:18:48 +0000 (17:18 +0000)
committerCornelia Huck <[email protected]>
Mon, 4 Feb 2019 12:47:50 +0000 (13:47 +0100)
MTTCG should be enabled by default whenever the memory model allows
it. s390x was missing its definition of TCG_GUEST_DEFAULT_MO meaning
the user had to manually specify  --accel tcg,thread=multi.

Signed-off-by: Alex Bennée <[email protected]>
Cc: David Hildenbrand <[email protected]>
Message-Id: <20190118171848[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
target/s390x/cpu.h

index 8c2320e882205fd48591724db3e312fed0743212..47d2c2e9cf2baca1f338ff04983157a1023c91b0 100644 (file)
 #define CPUArchState struct CPUS390XState
 
 #include "exec/cpu-defs.h"
+
+/* The z/Architecture has a strong memory model with some store-after-load re-ordering */
+#define TCG_GUEST_DEFAULT_MO      (TCG_MO_ALL & ~TCG_MO_ST_LD)
+
 #define TARGET_PAGE_BITS 12
 
 #define TARGET_PHYS_ADDR_SPACE_BITS 64
This page took 0.029741 seconds and 4 git commands to generate.