Files
qemu/hw
Peter Maydell 6a3b8807e9 hw/net/allwinner-sun8i-emac: Correctly byteswap descriptor fields
In allwinner-sun8i-emac we just read directly from guest memory into
a host FrameDescriptor struct and back.  This only works on
little-endian hosts.  Reading and writing of descriptors is already
abstracted into functions; make those functions also handle the
byte-swapping so that TransferDescriptor structs as seen by the rest
of the code are always in host-order, and fix two places that were
doing ad-hoc descriptor reading without using the functions.

Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20230424165053.1428857-3-peter.maydell@linaro.org
(cherry picked from commit a4ae17e5ec)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-05-30 22:05:27 +03:00
..
2023-02-08 07:28:05 +01:00
2023-03-24 11:45:46 +01:00
2023-03-13 22:57:39 +04:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00
2023-03-24 11:45:33 +01:00
2023-03-20 12:43:50 +01:00
2023-04-12 12:03:09 +02:00
2023-02-08 07:28:05 +01:00
2023-02-08 07:28:05 +01:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00
2023-02-27 22:29:02 +01:00
2023-05-30 22:05:27 +03:00
2023-03-20 12:43:50 +01:00