Skip to content

Commit

Permalink
target/s390x: Define TARGET_HAS_PRECISE_SMC
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
iii-i authored and huth committed Aug 31, 2023
1 parent 17780ed commit c7f41e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions target/s390x/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7f41e4

Please sign in to comment.