summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorRichard Henderson2022-05-01 21:21:19 +0200
committerRichard Henderson2022-06-28 01:05:52 +0200
commit3367d452b001e91547634756e32246610701df5c (patch)
treec1fdad55d16972979e481a1582a9d1faed743be3 /linux-user
parentsemihosting: Fix docs comment for qemu_semihosting_console_inc (diff)
downloadqemu-3367d452b001e91547634756e32246610701df5c.tar.gz
qemu-3367d452b001e91547634756e32246610701df5c.tar.xz
qemu-3367d452b001e91547634756e32246610701df5c.zip
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>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/semihost.c2
1 files changed, 1 insertions, 1 deletions
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;