[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 3/5] semihosting: add qemu_semihosting_console_inc for SYS
From: |
Richard Henderson |
Subject: |
Re: [PATCH v2 3/5] semihosting: add qemu_semihosting_console_inc for SYS_READC |
Date: |
Sun, 29 Dec 2019 13:58:15 +1100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 |
On 12/21/19 12:22 AM, Alex Bennée wrote:
> From: Keith Packard <address@hidden>
>
> Provides a blocking call to read a character from the console using
> semihosting.chardev, if specified. This takes some careful command
> line options to use stdio successfully as the serial ports, monitor
> and semihost all want to use stdio. Here's a sample set of command
> line options which share stdio between semihost, monitor and serial
> ports:
>
> qemu \
> -chardev stdio,mux=on,id=stdio0 \
> -serial chardev:stdio0 \
> -semihosting-config enable=on,chardev=stdio0 \
> -mon chardev=stdio0,mode=readline
>
> This creates a chardev hooked to stdio and then connects all of the
> subsystems to it. A shorter mechanism would be good to hear about.
>
> Signed-off-by: Keith Packard <address@hidden>
> Message-Id: <address@hidden>
> [AJB: fixed up deadlock, minor commit title reword]
> Signed-off-by: Alex Bennée <address@hidden>
> Cc: Paolo Bonzini <address@hidden>
> Reviewed-by: Keith Packard <address@hidden>
> Tested-by: Keith Packard <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
r~
- [PATCH v2 0/5] semihosting read console support, Alex Bennée, 2019/12/20
- [PATCH v2 1/5] target/arm: remove unused EXCP_SEMIHOST leg, Alex Bennée, 2019/12/20
- [PATCH v2 2/5] target/arm: only update pc after semihosting completes, Alex Bennée, 2019/12/20
- [PATCH v2 3/5] semihosting: add qemu_semihosting_console_inc for SYS_READC, Alex Bennée, 2019/12/20
- Re: [PATCH v2 3/5] semihosting: add qemu_semihosting_console_inc for SYS_READC,
Richard Henderson <=
- [PATCH v2 4/5] tests/tcg: add a dumb-as-bricks semihosting console test, Alex Bennée, 2019/12/20
- [PATCH v2 5/5] tests/tcg: add user version of dumb-as-bricks semiconsole test, Alex Bennée, 2019/12/20