diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-12-05 23:42:49 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-12-14 00:16:20 +0100 |
commit | ccc76731aee7d3efb16a679fa5bf3cc3f57e9f2d (patch) | |
tree | e189a3087161d16ca1b1e2deea515fae78535a6f /hw/sh4 | |
parent | 50e2b701876c087e14b1e7cabb2ffaa51008e174 (diff) | |
download | qemu-ccc76731aee7d3efb16a679fa5bf3cc3f57e9f2d.zip qemu-ccc76731aee7d3efb16a679fa5bf3cc3f57e9f2d.tar.gz qemu-ccc76731aee7d3efb16a679fa5bf3cc3f57e9f2d.tar.bz2 |
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>
Diffstat (limited to 'hw/sh4')
-rw-r--r-- | hw/sh4/r2d.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/sh4/r2d.c b/hw/sh4/r2d.c index 7eecd79..e6cc156 100644 --- a/hw/sh4/r2d.c +++ b/hw/sh4/r2d.c @@ -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) |