]> xenbits.xensource.com Git - qemu-xen.git/commit
exec: Declare target_words_bigendian() in 'exec/tswap.h'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 12 Dec 2023 10:34:25 +0000 (11:34 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 26 Apr 2024 15:03:05 +0000 (17:03 +0200)
commit425082612c012843d8b33fa0d35966adf5600c47
treef4998d44fed185a83d0a067e63cf60dfdf424df0
parent77166c4568eb7cbd81afeecf4975c607b734f1f0
exec: Declare target_words_bigendian() in 'exec/tswap.h'

We usually check target endianess before swapping values,
so target_words_bigendian() declaration makes sense in
"exec/tswap.h" with the target swapping helpers.

Remove "hw/core/cpu.h" when it was only included to get
the target_words_bigendian() declaration.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Message-Id: <20231212123401.37493-16-philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
cpu-target.c
disas/disas.c
hw/audio/virtio-snd.c
hw/core/cpu-sysemu.c
hw/core/generic-loader.c
hw/display/vga.c
hw/virtio/virtio.c
include/exec/tswap.h
include/hw/core/cpu.h