From 3367d452b001e91547634756e32246610701df5c Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 1 May 2022 12:21:19 -0700 Subject: 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 Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- linux-user/semihost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux-user/semihost.c') diff --git a/linux-user/semihost.c b/linux-user/semihost.c index 17f074ac56..f14c6ae21d 100644 --- a/linux-user/semihost.c +++ b/linux-user/semihost.c @@ -56,7 +56,7 @@ void qemu_semihosting_console_outc(CPUArchState *env, target_ulong addr) * program is expecting more normal behaviour. This is slow but * nothing using semihosting console reading is expecting to be fast. */ -target_ulong qemu_semihosting_console_inc(CPUArchState *env) +target_ulong qemu_semihosting_console_inc(CPUState *cs) { uint8_t c; struct termios old_tio, new_tio; -- cgit 1.4.1