semihosting/uaccess: Avoid including 'cpu.h'
commit3aac8abaca536db275da671db088fef2dd82536d
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 6 Dec 2023 15:11:15 +0000 (6 16:11 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 26 Apr 2024 13:31:37 +0000 (26 15:31 +0200)
tree25f6c47845dd45bf3030b197cc9928de65e62dcb
parent0654c79416f346d967fbc7dad7ca451b49bbd822
semihosting/uaccess: Avoid including 'cpu.h'

"semihosting/uaccess.h" only requires the following headers:

  - "exec/cpu-defs.h" for target_ulong,
  - "exec/cpu-common.h" for cpu_memory_rw_debug()
  - "exec/tswap.h" for tswap32() and tswap64().

Include them instead of the huge "cpu.h".

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <42c6471e-8383-45e0-85ee-e20ca32ecbad@linaro.org>
include/semihosting/uaccess.h