[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] arm: allwinner: fix endianness bugs in sdhost and sun8i-emac
From: |
Peter Maydell |
Subject: |
[PATCH 0/2] arm: allwinner: fix endianness bugs in sdhost and sun8i-emac |
Date: |
Mon, 24 Apr 2023 17:50:51 +0100 |
This patchset fixes bugs in the sd controller and ethernet controller
devices used in the orangepi-pc board model. The bug is the same in
both cases: we read and write a descriptor struct from guest memory
without byte-swapping it, so the code only does the right thing on
a little-endian host.
These fixes (together with some of the others I've sent out earlier
today) are enough to get the BootLinuxConsole.test_arm_orangepi_sd
avocado test passing on an s390x host.
thanks
-- PMM
Peter Maydell (2):
hw/sd/allwinner-sdhost: Correctly byteswap descriptor fields
hw/net/allwinner-sun8i-emac: Correctly byteswap descriptor fields
hw/net/allwinner-sun8i-emac.c | 22 +++++++++++++++-------
hw/sd/allwinner-sdhost.c | 31 ++++++++++++++++++++++++++-----
2 files changed, 41 insertions(+), 12 deletions(-)
--
2.34.1
- [PATCH 0/2] arm: allwinner: fix endianness bugs in sdhost and sun8i-emac,
Peter Maydell <=