summaryrefslogtreecommitdiffstats
path: root/tcg
diff options
context:
space:
mode:
authorNicholas Piggin2022-05-19 15:59:06 +0200
committerDaniel Henrique Barboza2022-05-26 22:11:33 +0200
commit9d82353826422ed0e34ad76961fe0cae5f67e58e (patch)
tree7059f47ca671a2ef342c7eee887128a773d8222a /tcg
parenttarget/ppc: Fix eieio memory ordering semantics (diff)
downloadqemu-9d82353826422ed0e34ad76961fe0cae5f67e58e.tar.gz
qemu-9d82353826422ed0e34ad76961fe0cae5f67e58e.tar.xz
qemu-9d82353826422ed0e34ad76961fe0cae5f67e58e.zip
tcg/ppc: ST_ST memory ordering is not provided with eieio
eieio does not provide ordering between stores to CI memory and stores to cacheable memory so it can't be used as a general ST_ST barrier. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-of-by: Nicholas Piggin <npiggin@gmail.com> Message-Id: <20220519135908.21282-3-npiggin@gmail.com> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'tcg')
-rw-r--r--tcg/ppc/tcg-target.c.inc2
1 files changed, 0 insertions, 2 deletions
diff --git a/tcg/ppc/tcg-target.c.inc b/tcg/ppc/tcg-target.c.inc
index fc8ae47293..4750091c9c 100644
--- a/tcg/ppc/tcg-target.c.inc
+++ b/tcg/ppc/tcg-target.c.inc
@@ -1836,8 +1836,6 @@ static void tcg_out_mb(TCGContext *s, TCGArg a0)
a0 &= TCG_MO_ALL;
if (a0 == TCG_MO_LD_LD) {
insn = LWSYNC;
- } else if (a0 == TCG_MO_ST_ST) {
- insn = EIEIO;
}
tcg_out32(s, insn);
}