exec/user: Do not include 'cpu.h' in 'abitypes.h'
commitd25ddb3f543dda8189b19dafd0b9a972c331fade
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 5 Dec 2023 21:45:37 +0000 (5 22:45 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 26 Apr 2024 15:03:05 +0000 (26 17:03 +0200)
tree5d4c940361efc903b4c1c64390747b5cfc2496f5
parent827238668e7dc44e43e71a3e12b605881fe6887e
exec/user: Do not include 'cpu.h' in 'abitypes.h'

"exec/user/abitypes.h" requires:

 - "exec/cpu-defs.h"           (TARGET_LONG_BITS)
 - "exec/tswap.h"              (tswap32)

In order to avoid "cpu.h", pick the minimum required headers.

Assert this user-specific header is only included from user
emulation.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231212123401.37493-20-philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
include/exec/user/abitypes.h