]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/s390x: Define TARGET_HAS_PRECISE_SMC
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 7 Aug 2023 11:48:20 +0000 (13:48 +0200)
committerThomas Huth <thuth@redhat.com>
Thu, 31 Aug 2023 17:10:01 +0000 (19:10 +0200)
PoP (Sequence of Storage References -> Instruction Fetching) says:

    ... if a store that is conceptually earlier is
    made by the same CPU using the same effective
    address as that by which the instruction is subse-
    quently fetched, the updated information is obtained ...

QEMU already has support for this in the common code; enable it for
s390x.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20230807114921.438881-1-iii@linux.ibm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/cpu.h

index eb5b65b7d3a01249fc3a0c3a192607fad132f540..304029e57cfb251e5f25529000e1fbaedbbf5c04 100644 (file)
@@ -36,6 +36,8 @@
 /* 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_HAS_PRECISE_SMC
+
 #define TARGET_INSN_START_EXTRA_WORDS 2
 
 #define MMU_USER_IDX 0