You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/mips
Thomas Huth 7af325c23e hw/mips/malta: Silence warning from ubsan
When compiling QEMU with --enable-ubsan there is a undefined behavior
warning when using the malta machine:

 hw/mips/malta.c:1200:32: runtime error: addition of unsigned offset
  to 0x7fb620600000 overflowed to 0x7fb6205fffff
 SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior hw/mips/malta.c:1200:32

To fix the issue, check the bios_size whether we really loaded the
firmware before trying to byte-swap the instructions here.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250728115152.187728-1-thuth@redhat.com>
3 weeks ago
..
Kconfig hw/mips: Remove mipssim machine 1 month ago
bootloader.c hw/mips/bootloader: Implement nanoMIPS JALRc opcode generator 3 years ago
boston.c hw: Centralize handling of -machine dumpdtb option 7 months ago
cps.c hw/mips: Restrict ITU to TCG 3 months ago
fuloong2e.c target/mips: Revert TARGET_PAGE_BITS_VARY 6 months ago
fw_cfg.c
fw_cfg.h
jazz.c hw/mips: Evaluate TARGET_BIG_ENDIAN at compile time 5 months ago
loongson3_bootp.c hw/mips/loongson3_virt: Propagate processor_id to init_loongson_params() 8 months ago
loongson3_bootp.h hw/mips/loongson3_virt: Propagate processor_id to init_loongson_params() 8 months ago
loongson3_virt.c hw/mips/loongson3_virt: Include 'system/system.h' 1 month ago
malta.c hw/mips/malta: Silence warning from ubsan 3 weeks ago
meson.build hw/mips: Remove mipssim machine 1 month ago
mips_int.c include: Rename sysemu/ -> system/ 10 months ago
trace-events hw/mips/gt64xxx_pci: Move it to hw/pci-host/ 3 years ago
trace.h