user: Declare get_task_state() once in 'accel/tcg/vcpu-state.h'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 25 Apr 2024 09:11:49 +0000 (11:11 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 6 May 2024 12:13:45 +0000 (14:13 +0200)
commit8019601324159e76ccced4eb8d27093ec0011a54
treec5456008cf684c75991054f1d6381309681d3024
parentef932e21bd83c1beab94b10989bf6e8424a886c2
user: Declare get_task_state() once in 'accel/tcg/vcpu-state.h'

While each user emulation implentation defines its own
TaskState structure, both use the same get_task_state()
declaration, in particular in common code (such gdbstub).
Declare the method once in "accel/tcg/vcpu-state.h".

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240428221450.26460-10-philmd@linaro.org>
accel/tcg/vcpu-state.h [new file with mode: 0644]
bsd-user/qemu.h
linux-user/qemu.h