qemu/tests
Paolo Bonzini d1bb978ba1 target/i386: fix cmpxchg with 32-bit register destination
Unlike the memory case, where "the destination operand receives a write
cycle without regard to the result of the comparison", rm must not be
touched altogether if the write fails, including not zero-extending
it on 64-bit processors.  This is not how the movcond currently works,
because it is always followed by a gen_op_mov_reg_v to rm.

To fix it, introduce a new function that is similar to gen_op_mov_reg_v
but writes to a TCG temporary.

Considering that gen_extu(ot, oldv) is not needed in the memory case
either, the two cases for register and memory destinations are different
enough that one might as well fuse the two "if (mod == 3)" into one.
So do that too.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/508
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
[rth: Add a test case ]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2022-11-15 09:34:42 +10:00
..
avocado acpi/tests/avocado/bits: add acpi and smbios avocado tests that uses biosbits 2022-11-02 06:56:32 -04:00
bench test/crypto: Add test suite for crypto akcipher 2022-05-26 11:41:54 +01:00
data tests/acpi: update tables for new core count test 2022-11-07 14:08:18 -05:00
decode
docker tests/docker: Add flex/bison to debian-hexagon-cross 2022-10-31 20:37:58 +00:00
fp meson: remove dead assignments 2022-09-01 07:42:37 +02:00
guest-debug
image-fuzzer
include
keys
lcitool tests/lcitool: Refresh to latest libvirt-ci module 2022-10-31 20:37:47 +00:00
migration tests/migration: remove the unused local variable 2022-10-11 12:37:12 +02:00
multiboot
perf/block/qcow2
plugin
qapi-schema meson: remove dead assignments 2022-09-01 07:42:37 +02:00
qemu-iotests block: Refactor get_tmp_filename() 2022-10-27 20:13:32 +02:00
qtest Fix several typos in documentation (found by codespell) 2022-11-11 09:39:25 +01:00
rocker
tcg target/i386: fix cmpxchg with 32-bit register destination 2022-11-15 09:34:42 +10:00
tsan
uefi-test-tools
unit pci,pc,virtio: features, tests, fixes, cleanups 2022-11-07 18:43:56 -05:00
vm tests/vm: use -o IdentitiesOnly=yes for ssh 2022-10-31 20:37:59 +00:00
vmstate-static-checker-data
check-block.sh
dbus-vmstate-daemon.sh
Makefile.include configure: move tests/tcg/Makefile.prereqs to root build directory 2022-10-06 11:53:40 +01:00
meson.build
requirements.txt tests: install "qemu" namespace package into venv 2022-06-06 09:26:54 +02:00
test-qht-par.c
vhost-user-bridge.c tests: vhost-user-bridge: Avoid using hardcoded /tmp 2022-09-27 20:51:20 +02:00