mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/sh4/r2d: Include missing 'exec/tswap.h' header
r2d.c indirectly get "exec/tswap.h" declarations via "exec/cpu-all.h". Include it directly to be able to remove the former from the latter, otherwise we get: hw/sh4/r2d.c:357:35: error: call to undeclared function 'tswap32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 357 | boot_params.loader_type = tswap32(1); | ^ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20241211230357.97036-8-philmd@linaro.org>
This commit is contained in:
parent
50e2b70187
commit
ccc76731ae
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@
|
|||
#include "hw/loader.h"
|
||||
#include "hw/usb.h"
|
||||
#include "hw/block/flash.h"
|
||||
#include "exec/tswap.h"
|
||||
|
||||
#define FLASH_BASE 0x00000000
|
||||
#define FLASH_SIZE (16 * MiB)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue