qemu-patch-raspberry4/tests/libqos
Andreas Färber 0e16297461 libqos: Fix PC PCI endianness glitches
The libqos implementation of io_read{b,w,l} and io_write{b,w,l} hooks
was relying on qtest_mem{read,write}() respectively. With d81d410 (usb:
improve ehci/uhci test) this resulted in assertion failures on ppc hosts:

 ERROR:tests/usb-hcd-ehci-test.c:78:ehci_port_test: assertion failed: ((value & mask) == (expect & mask))

 ERROR:tests/usb-hcd-ehci-test.c:128:pci_uhci_port_2: assertion failed: (pcibus != NULL)

 ERROR:tests/usb-hcd-ehci-test.c:150:pci_ehci_port_2: assertion failed: (pcibus != NULL)

qtest_read{b,w,l,q}() and qtest_write{b,w,l,q}() had been introduced
as endian-safe replacement for qtest_mem{read,write}() in I2C in
872536b (qtest: Add MMIO support). Use them for PCI as well.

Cc: Anthony Liguori <aliguori@amazon.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Fixes: c4efe1c qtest: add libqos including PCI support
Fixes: d81d410 usb: improve ehci/uhci test
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2014-07-15 14:18:15 +01:00
..
fw_cfg.c libqos: Generalize I/O-mapped fw_cfg 2013-07-18 13:27:47 -05:00
fw_cfg.h libqos: Generalize I/O-mapped fw_cfg 2013-07-18 13:27:47 -05:00
i2c-omap.c libqos: Relocate I2C files 2013-05-03 12:03:14 -05:00
i2c.c libqos: Relocate I2C files 2013-05-03 12:03:14 -05:00
i2c.h libqos: Relocate I2C files 2013-05-03 12:03:14 -05:00
malloc-pc.c libqos: Generalize I/O-mapped fw_cfg 2013-07-18 13:27:47 -05:00
malloc-pc.h libqos: add malloc support 2013-04-17 10:26:05 -05:00
malloc.h libqos: add malloc support 2013-04-17 10:26:05 -05:00
pci-pc.c libqos: Fix PC PCI endianness glitches 2014-07-15 14:18:15 +01:00
pci-pc.h qtest: add libqos including PCI support 2013-04-17 10:26:05 -05:00
pci.c qtest: fix qpci_config_writel 2014-06-02 16:28:59 +02:00
pci.h qtest: add libqos including PCI support 2013-04-17 10:26:05 -05:00