mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
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>
This commit is contained in:
@ -428,7 +428,7 @@ void do_common_semihosting(CPUState *cs)
|
||||
break;
|
||||
|
||||
case TARGET_SYS_READC:
|
||||
ret = qemu_semihosting_console_inc(env);
|
||||
ret = qemu_semihosting_console_inc(cs);
|
||||
common_semi_set_ret(cs, ret);
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user