diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2022-05-01 12:21:19 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2022-06-28 04:35:52 +0530 |
| commit | 3367d452b001e91547634756e32246610701df5c (patch) | |
| tree | c1fdad55d16972979e481a1582a9d1faed743be3 /include/semihosting/console.h | |
| parent | 675f702fd725f07af50d99318c11bf2512b774d7 (diff) | |
| download | focaccia-qemu-3367d452b001e91547634756e32246610701df5c.tar.gz focaccia-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 'include/semihosting/console.h')
| -rw-r--r-- | include/semihosting/console.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/semihosting/console.h b/include/semihosting/console.h index 4f6217bf10..27f8e9ae2e 100644 --- a/include/semihosting/console.h +++ b/include/semihosting/console.h @@ -39,7 +39,7 @@ void qemu_semihosting_console_outc(CPUArchState *env, target_ulong c); /** * qemu_semihosting_console_inc: - * @env: CPUArchState + * @cs: CPUState * * Receive single character from debug console. As this call may block * if no data is available we suspend the CPU and will re-execute the @@ -50,7 +50,7 @@ void qemu_semihosting_console_outc(CPUArchState *env, target_ulong c); * * Returns: character read OR cpu_loop_exit! */ -target_ulong qemu_semihosting_console_inc(CPUArchState *env); +target_ulong qemu_semihosting_console_inc(CPUState *cs); /** * qemu_semihosting_log_out: |