[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] 0e1629: libqos: Fix PC PCI endianness glitche
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] 0e1629: libqos: Fix PC PCI endianness glitches |
Date: |
Tue, 15 Jul 2014 07:30:06 -0700 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: 0e16297461264b3ea8f7282d1195cf53aa8a707c
https://github.com/qemu/qemu/commit/0e16297461264b3ea8f7282d1195cf53aa8a707c
Author: Andreas Färber <address@hidden>
Date: 2014-07-15 (Tue, 15 Jul 2014)
Changed paths:
M tests/libqos/pci-pc.c
Log Message:
-----------
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 <address@hidden>
Cc: Gerd Hoffmann <address@hidden>
Fixes: c4efe1c qtest: add libqos including PCI support
Fixes: d81d410 usb: improve ehci/uhci test
Signed-off-by: Andreas Färber <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] 0e1629: libqos: Fix PC PCI endianness glitches,
GitHub <=