qemu/hw/mips
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
..
addr.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
cputimer.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
gt64xxx_pci.c mips_malta: do not use isa_mmio 2013-07-25 08:12:27 -05:00
Makefile.objs hw: move PCI bridges to hw/pci-* or hw/ARCH 2013-04-08 18:13:14 +02:00
mips_fulong2e.c mips: degrade BIOS error to warning 2013-07-25 08:12:27 -05:00
mips_int.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
mips_jazz.c mips: degrade BIOS error to warning 2013-07-25 08:12:27 -05:00
mips_malta.c mips_malta: fix BIOS endianness swapping 2013-07-28 19:18:07 +02:00
mips_mipssim.c mips: degrade BIOS error to warning 2013-07-25 08:12:27 -05:00
mips_r4k.c mips_r4k: do not use isa_mmio 2013-07-25 08:12:27 -05:00