qemu-irix/hw
Peter Maydell ec9125bc0e hw/usb/dev-network.c: Use ldl_le_p() and stl_le_p()
Use stl_le_p() and ldl_le_p() to read and write data from
buffers, rather than using pointer casts and cpu_to_le32()
for writes and le32_to_cpup() for reads. This:
 * avoids lots of casts
 * works even if the buffer isn't as aligned as the host would like
 * avoids using the *_to_cpup() functions which we want to get rid of

Note that there may still be some places where a pointer from the
guest is cast to a pointer to a host structure; these would also
have to be changed for the device to work on a host CPU which
enforces alignment restrictions.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1465573077-29221-1-git-send-email-peter.maydell@linaro.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2016-06-13 13:18:51 +02:00
..
9pfs
acpi
alpha alpha: include cpu-qom.h in files that require AlphaCPU 2016-05-19 16:42:27 +02:00
arm
audio audio: Use DIV_ROUND_UP 2016-06-07 18:19:25 +03:00
block
bt
char
core
cpu
cris
display xen: Use DIV_ROUND_UP 2016-06-07 18:19:24 +03:00
dma hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
gpio hw: clean up hw/hw.h includes 2016-05-19 16:42:30 +02:00
i2c
i386
ide
input hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
intc
ipack ipack: Update e-mail address 2016-05-18 15:04:27 +03:00
ipmi
isa ICH9: fix typo 2016-06-07 18:19:23 +03:00
lm32
m68k
mem
microblaze
mips
misc
moxie
net rocker: Use DIV_ROUND_UP 2016-06-07 18:19:25 +03:00
nvram
openrisc
pci
pci-bridge hw/pci-bridge: Add missing unref in case register-bus fails 2016-04-07 19:57:33 +03:00
pci-host
pcmcia
ppc
s390x
scsi * max-ram-below-4g improvement (Gerd) 2016-06-08 14:45:28 +01:00
sd
sh4
smbios
sparc
sparc64
ssi
timer
tpm tpm: Fix write to file descriptor function 2016-04-13 19:52:34 +03:00
tricore
unicore32
usb hw/usb/dev-network.c: Use ldl_le_p() and stl_le_p() 2016-06-13 13:18:51 +02:00
vfio vfio: Check that IOMMU MR translates to system address space 2016-05-26 11:12:09 -06:00
virtio
watchdog
xen
xenpv xen: add pvUSB backend 2016-05-23 13:30:03 +02:00
xtensa replace muldiv64(a, b, c) by (uint64_t)a * b / c 2016-06-07 18:02:49 +03:00
Makefile.objs