You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/include/semihosting
Philippe Mathieu-Daudé 5779210656 semihosting/console: Avoid including 'cpu.h'
The CPUState structure is declared in "hw/core/cpu.h",
the EXCP_HALTED definition in "exec/cpu-common.h".
Both headers are indirectly include by "cpu.h". In
order to remove "cpu.h" from "semihosting/console.h",
explicitly include them in console.c, otherwise we'd
get:

  ../semihosting/console.c:88:11: error: incomplete definition of type 'struct CPUState'
     88 |         cs->exception_index = EXCP_HALTED;
        |         ~~^
  ../semihosting/console.c:88:31: error: use of undeclared identifier 'EXCP_HALTED'
     88 |         cs->exception_index = EXCP_HALTED;
        |                               ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250103171037.11265-5-philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20250116160306.1709518-7-alex.bennee@linaro.org>
5 days ago
..
common-semi.h semihosting: Move common-semi.h to include/semihosting/ 3 years ago
console.h semihosting/console: Avoid including 'cpu.h' 5 days ago
guestfd.h semihosting: Create qemu_semihosting_guestfd_init 3 years ago
semihost.h semihosting: Clean up global variable shadowing 1 year ago
syscalls.h semihosting/syscalls: Include missing 'exec/cpu-defs.h' header 5 days ago
uaccess.h semihosting/uaccess: Briefly document returned values 5 days ago