xemu/hw
Peter Maydell 676ea985c0 hw/net/can/ctucan_core: Handle big-endian hosts
The ctucan driver defines types for its registers which are a union
of a uint32_t with a struct with bitfields for the individual
fields within that register. This is a bad idea, because bitfields
aren't portable. The ctu_can_fd_regs.h header works around the
most glaring of the portability issues by defining the
fields in two different orders depending on the setting of the
__LITTLE_ENDIAN_BITFIELD define. However, in ctucan_core.h this
is unconditionally set to 1, which is wrong for big-endian hosts.

Set it only if HOST_WORDS_BIGENDIAN is not set. There is no need
for a "have we defined it already" guard, because the only place
that should set it is ctucan_core.h, which has the usual
double-inclusion guard.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Tested-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2020-11-11 20:34:36 +08:00
..
9pfs hw/9pfs: Fix Kconfig dependency problem between 9pfs and Xen 2020-11-05 15:21:11 +01:00
acpi hw/acpi : add spaces around operator 2020-11-03 07:19:27 -05:00
adc
alpha
arm hw/arm/nseries: Check return value from load_image_targphys() 2020-11-10 11:03:48 +00:00
audio
avr
block hw/block/nvme: fix free of array-typed value 2020-11-09 15:44:21 +01:00
char
core hw/mips/boston: Fix Lesser GPL version number 2020-11-03 16:51:13 +01:00
cpu
cris
display ati: check x y display parameter values 2020-11-04 08:25:17 +01:00
dma
gpio
hppa
hyperv
i2c
i386 pc: comment style fixup 2020-11-03 07:19:26 -05:00
ide xen: rework pci_piix3_xen_ide_unplug 2020-11-02 11:56:55 +00:00
input
intc hw/intc/ibex_plic: Clear the claim register when read 2020-11-09 15:09:53 -08:00
ipack
ipmi
isa hw/isa/lpc_ich9: Ignore reserved/invalid SCI IRQ 2020-11-03 09:42:53 -05:00
lm32
m68k
mem memory-device: Add get_min_alignment() callback 2020-11-03 07:19:26 -05:00
microblaze
mips hw/mips/boston: Fix memory leak in boston_fdt_filter() error-handling paths 2020-11-09 00:40:44 +01:00
misc hw/misc/stm32f2xx_syscfg: Remove extraneous IRQ 2020-11-10 11:03:48 +00:00
moxie
net hw/net/can/ctucan_core: Handle big-endian hosts 2020-11-11 20:34:36 +08:00
nios2
nubus
nvram
openrisc
pci
pci-bridge
pci-host hw/mips/boston: Fix Lesser GPL version number 2020-11-03 16:51:13 +01:00
pcmcia
ppc spapr: Convert hpt_prepare_thread() to use qemu_try_memalign() 2020-11-05 12:18:48 +11:00
rdma
riscv hw/riscv: microchip_pfsoc: Hook the I2C1 controller 2020-11-03 07:17:23 -08:00
rtc
rx hw/rx/rx-gdbsim: Fix memory leak (CID 1432307) 2020-11-09 00:53:07 +01:00
s390x s390x: Avoid variable size warning in ipl.h 2020-11-10 08:51:30 +01:00
scsi
sd
semihosting
sh4
smbios hw/smbios: Fix leaked fd in save_opt_one() error path 2020-11-03 07:19:27 -05:00
sparc
sparc64
ssi ssi: Fix bad printf format specifiers 2020-11-10 11:03:47 +00:00
timer
tpm
tricore
unicore32
usb dev-serial: store flow control and xon/xoff characters 2020-11-04 07:22:37 +01:00
vfio vfio: Don't issue full 2^64 unmap 2020-11-03 16:39:05 -05:00
virtio vhost-blk: set features before setting inflight feature 2020-11-03 16:39:05 -05:00
watchdog
xen
xenpv
xtensa
Kconfig
meson.build