qemu-e2k/hw/nvram
Paolo Bonzini 6fdf98f281 fw_cfg: the I/O port variant expects little-endian
The I/O port variant of fw_cfg is used by sparc64, which is a big-endian machine.
Firmware swaps bytes before sending them to fw_cfg, so we need to unswap them in
the device.

This is only used on sparc64 and on (little-endian) x86, so it does not affect
any other target.  32-bit Sparc and PPC all use memory-mapped fw_cfg.

Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-id: 1375014954-31916-2-git-send-email-pbonzini@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-08-07 12:48:15 -05:00
..
ds1225y.c ds1225y: QOM cast cleanup for SysBusNvRamState 2013-07-29 21:07:00 +02:00
eeprom93xx.c
fw_cfg.c fw_cfg: the I/O port variant expects little-endian 2013-08-07 12:48:15 -05:00
mac_nvram.c hw/n*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
Makefile.objs hw: move NVRAM interfaces to hw/nvram/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
spapr_nvram.c spapr-rtas: add CPU argument to RTAS calls 2013-07-01 01:11:16 +02:00