qemu-e2k/target
Greg Kurz 3e5365b7aa target/ppc: Fix QEMU crash with stxsdx
I've been hitting several QEMU crashes while running a fedora29 ppc64le
guest under TCG. Each time, this would occur several minutes after the
guest reached login:

Fedora 29 (Twenty Nine)
Kernel 4.20.6-200.fc29.ppc64le on an ppc64le (hvc0)

Web console: https://localhost:9090/

localhost login:
tcg/tcg.c:3211: tcg fatal error

This happens because a bug crept up in the gen_stxsdx() helper when it
was converted to use VSR register accessors by commit 8b3b2d75c7
"target/ppc: introduce get_cpu_vsr{l,h}() and set_cpu_vsr{l,h}() helpers
for VSR register access".

The code creates a temporary, passes it directly to gen_qemu_st64_i64()
and then to set_cpu_vrsh()... which looks like this was mistakenly
coded as a load instead of a store.

Reverse the logic: read the VSR to the temporary first and then store
it to memory.

Fixes: 8b3b2d75c7
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <155371035249.2038502.12364252604337688538.stgit@bahia.lan>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2019-03-29 10:22:22 +11:00
..
alpha
arm target/arm: Set SIMDMISC and FPMISC for 32-bit -cpu max 2019-03-26 12:53:26 +00:00
cris
hppa trace-events: Shorten file names in comments 2019-03-22 16:18:07 +00:00
i386 * Kconfig improvements (msi_nonbroken, imply for default PCI devices) 2019-03-28 09:18:53 +00:00
lm32
m68k
microblaze
mips trace-events: Shorten file names in comments 2019-03-22 16:18:07 +00:00
moxie
nios2
openrisc
ppc target/ppc: Fix QEMU crash with stxsdx 2019-03-29 10:22:22 +11:00
riscv target/riscv: Fix wrong expanding for c.fswsp 2019-03-26 03:17:30 -07:00
s390x trace-events: Shorten file names in comments 2019-03-22 16:18:07 +00:00
sh4
sparc trace-events: Shorten file names in comments 2019-03-22 16:18:07 +00:00
tilegx
tricore tricore: fixed RCR_CADDN instruction 2019-03-08 10:00:59 +01:00
unicore32
xtensa target/xtensa: don't announce exit simcall 2019-03-23 14:41:48 -07:00