semihosting: Pass CPUState to qemu_semihosting_console_inc
commit3367d452b001e91547634756e32246610701df5c
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 1 May 2022 19:21:19 +0000 (1 12:21 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Jun 2022 23:05:52 +0000 (28 04:35 +0530)
treec1fdad55d16972979e481a1582a9d1faed743be3
parent675f702fd725f07af50d99318c11bf2512b774d7
semihosting: Pass CPUState to qemu_semihosting_console_inc

We don't need CPUArchState, and we do want the CPUState of the
thread performing the operation -- use this instead of current_cpu.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/semihosting/console.h
linux-user/semihost.c
semihosting/arm-compat-semi.c
semihosting/console.c