qemu-patch-raspberry4/hw
Paul Burton a2b8813d62 mips_malta: fix BIOS endianness swapping
If the target is little endian (mipsel) then the BIOS image endianness
is swapped so that the big endian BIOS binaries commonly produced can be
loaded correctly.

When using the -bios argument the BIOS is loaded using
load_image_targphys, however this doesn't perform the load to target
memory immediately. Instead it loads the BIOS file into a struct Rom
which will later be written to target memory upon reset. However the
endianness conversion was being performed before this, on init, and
operating on the target memory which at this point is blank & will later
be overwritten by the (big endian) BIOS image. Correct this by operating
on the data referenced by struct Rom rather than the target memory when
the -bios argument is used.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2013-07-28 19:18:07 +02:00
..
9pfs hw/9pfs: Fix memory leak in error path 2013-07-09 13:38:56 -05:00
acpi acpi/piix4: QOM parent field cleanup 2013-07-23 00:37:33 +02:00
alpha target-alpha: Move alarm to vm_clock 2013-07-18 06:44:55 -07:00
arm hw/arm: Use 'load_ramdisk()' for loading ramdisks w/ U-Boot header 2013-07-22 12:01:37 +01:00
audio hw/a*: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
block pflash_cfi02: Use QOM realize for pflash_cfi02 2013-07-23 00:37:35 +02:00
bt sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
char char/cadence_uart: Fix reset for unattached instances 2013-07-15 12:28:07 +01:00
core hw/loader: Support ramdisk with u-boot header 2013-07-22 12:00:56 +01:00
cpu hw/cpu/a15mpcore: Correct default value for num-irq 2013-07-15 16:17:02 +01:00
cris memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
display display/vmware_vga: QOM parent field cleanup 2013-07-23 00:37:34 +02:00
dma hw/dma/omap_dma: Fix bugs with DMA requests above 32 2013-07-15 16:17:44 +01:00
gpio hw/gpio: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
i2c hw: Avoid use of QOM type name macros in VMStateDescriptions 2013-07-23 00:37:32 +02:00
i386 QOM CPUState refactorings 2013-07-23 10:57:04 -05:00
ide ahci: Use QOM realize for ahci 2013-07-23 00:37:35 +02:00
input hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
intc ioapic: Use QOM realize for ioapic 2013-07-23 00:37:35 +02:00
isa isa_mmio: delete 2013-07-25 08:12:27 -05:00
lm32 memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
m68k memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
microblaze microblaze: Fix latent bug with default DTB lookup 2013-07-09 13:38:58 -05:00
mips mips_malta: fix BIOS endianness swapping 2013-07-28 19:18:07 +02:00
misc pc-testdev: add I/O port to test memory.c auto split/combine 2013-07-25 08:12:28 -05:00
moxie memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
net net/pcnet-pci: QOM Upcast Sweep 2013-07-23 00:37:33 +02:00
nvram fw_cfg: Use QOM realize for fw_cfg 2013-07-23 00:37:35 +02:00
openrisc hw/openrisc: Use stderr output instead of qemu_log 2013-07-23 18:31:24 +08:00
pci scsi: Improve error propagation for scsi_bus_legacy_handle_cmdline() 2013-07-23 00:37:35 +02:00
pci-bridge pci,net,pc enhancements 2013-07-18 08:12:47 -05:00
pci-host sparc64: unbreak 2013-07-25 08:12:28 -05:00
ppc ppc440_bamboo: do not use isa_mmio 2013-07-25 08:12:27 -05:00
s390x virtio-ccw: Enable x-data-plane for virtio-ccw-blk 2013-07-15 17:39:04 +02:00
scsi scsi: Improve error propagation for scsi_bus_legacy_handle_cmdline() 2013-07-23 00:37:35 +02:00
sd sd/pl181.c: Avoid undefined shift behaviour in RWORD macro 2013-07-15 16:17:30 +01:00
sh4 sh4: unbreak r2d 2013-07-25 08:12:27 -05:00
sparc sun4m: add display width and height to the firmware configuration 2013-07-26 16:56:50 -05:00
sparc64 ebus: do not use isa_mmio 2013-07-25 08:12:27 -05:00
ssi hw/s*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
timer hpet: Use QOM realize for hpet 2013-07-23 00:37:35 +02:00
tpm hw/t*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
unicore32 memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
usb scsi: Improve error propagation for scsi_bus_legacy_handle_cmdline() 2013-07-23 00:37:35 +02:00
virtio arm-devs queue 2013-07-22 10:14:24 -05:00
watchdog hw/[u-x]*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
xen xen/xen_platform: QOM parent field cleanup 2013-07-23 00:37:34 +02:00
xtensa cpu: Turn cpu_get_phys_page_debug() into a CPUClass hook 2013-07-23 02:41:33 +02:00
Makefile.objs virtio: simplify Makefile conditionals 2013-04-19 16:18:11 +02:00