[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 30/30] Fixes i386 xchgq test
From: |
Laurent Vivier |
Subject: |
[Qemu-devel] [PULL 30/30] Fixes i386 xchgq test |
Date: |
Tue, 11 Dec 2018 19:03:52 +0100 |
From: "address@hidden" <address@hidden>
As "xchg" reads and writes both operands, the "+m" is required to avoid
undefined behavior on -O2 compilation.
Signed-off-by: Fabrice Desclaux <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
---
tests/tcg/i386/test-i386.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c
index a29b41e764..18d5609665 100644
--- a/tests/tcg/i386/test-i386.c
+++ b/tests/tcg/i386/test-i386.c
@@ -1137,7 +1137,7 @@ void test_xchg(void)
TEST_XCHG(xchgb, "b", "+q");
#if defined(__x86_64__)
- TEST_XCHG(xchgq, "", "=m");
+ TEST_XCHG(xchgq, "", "+m");
#endif
TEST_XCHG(xchgl, "k", "+m");
TEST_XCHG(xchgw, "w", "+m");
--
2.19.2
- [Qemu-devel] [PULL 11/30] MAINTAINERS: Add a missing entry to the SPARC CPU, (continued)
- [Qemu-devel] [PULL 11/30] MAINTAINERS: Add a missing entry to the SPARC CPU, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 02/30] virtio: pass argument by value for virtqueue_map_iovec(), Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 18/30] MAINTAINERS: Add missing entries to the vhost section, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 14/30] MAINTAINERS: Add a missing entry for the Xilinx S3A-DSP 1800 machine, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 17/30] MAINTAINERS: Add missing entries to the PC Chipset section, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 16/30] MAINTAINERS: Add a missing entry for the sun4m machines, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 29/30] maint: Grammar fix to mailmap, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 28/30] MAINTAINERS: Update email address for Fam Zheng, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 23/30] MAINTAINERS: Add a missing entry for the NVDIMM device, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 27/30] cutils: Assert in-range base for string-to-integer conversions, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 30/30] Fixes i386 xchgq test,
Laurent Vivier <=
- [Qemu-devel] [PULL 24/30] MAINTAINERS: Use my work email to review Build and test automation patches, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 20/30] MAINTAINERS: Add missing entries for the MPS2 machine, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 01/30] hw: qdev: fix error in comment, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 08/30] MAINTAINERS: Add nios2-related files to the Nios2 section, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 25/30] target: hax: fix errors in comment, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 19/30] MAINTAINERS: Add missing entries for the Canon DIGIC machine, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 21/30] MAINTAINERS: Add a missing entry to SPICE, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 26/30] util: vfio-helpers: use ARRAY_SIZE in qemu_vfio_init_pci(), Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 12/30] MAINTAINERS: Add missing entries for the Xilinx ZynqMP machine, Laurent Vivier, 2018/12/11
- [Qemu-devel] [PULL 22/30] MAINTAINERS: Add a missing entry to the QMP section, Laurent Vivier, 2018/12/11