qemu-e2k/hw/mips
Thomas Huth dc96009afd hw/mips/malta: Fix the malta machine on big endian hosts
Booting a Linux kernel with the malta machine is currently broken
on big endian hosts. The cpu_to_gt32 macro wants to byteswap a value
for little endian targets only, but uses the wrong way to do this:
cpu_to_[lb]e32 works the other way round on big endian hosts! Fix
it by using the same ways on both, big and little endian hosts.

Fixes: 0c8427baf0 ("hw/mips/malta: Use bootloader helper to set BAR registers")
Cc: qemu-stable@nongnu.org
Message-Id: <20230330152613.232082-1-thuth@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2023-06-05 20:48:34 +02:00
..
bootloader.c hw/mips/bootloader: Implement nanoMIPS JALRc opcode generator 2023-01-13 09:32:32 +01:00
boston.c hw/mips: Declare all length properties as unsigned 2023-03-08 00:37:48 +01:00
cps.c hw/mips/itu: Pass SAAR using QOM link property 2023-03-08 00:37:48 +01:00
fuloong2e.c hw/mips/bootloader: Handle buffers as opaque arrays 2023-01-13 09:32:32 +01:00
fw_cfg.c
fw_cfg.h
jazz.c hw/isa: Rename isa_bus_irqs() -> isa_bus_register_input_irqs() 2023-02-27 22:29:02 +01:00
Kconfig hw/mips/Kconfig: Track Malta's PIIX dependencies via Kconfig 2023-01-13 16:22:57 +01:00
loongson3_bootp.c
loongson3_bootp.h
loongson3_virt.c hw/mips: Use MachineClass->default_nic in the virt machine 2023-05-26 09:10:49 +02:00
malta.c hw/mips/malta: Fix the malta machine on big endian hosts 2023-06-05 20:48:34 +02:00
meson.build hw/mips/gt64xxx_pci: Move it to hw/pci-host/ 2023-01-13 09:32:32 +01:00
mips_int.c hw/mips: Use QEMU_IOTHREAD_LOCK_GUARD in cpu_mips_irq_request 2023-01-04 16:20:01 -08:00
mipssim.c
trace-events hw/mips/gt64xxx_pci: Move it to hw/pci-host/ 2023-01-13 09:32:32 +01:00
trace.h