mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
semihosting: enable chardev backed output for console
It will be useful for a number of use-cases to be able to re-direct output to a file like we do with serial output. This does the wiring to allow us to treat then semihosting console like just another character output device. Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
This commit is contained in:
parent
a331c6d774
commit
4e7f9032cf
6 changed files with 51 additions and 3 deletions
|
@ -4025,12 +4025,12 @@ STEXI
|
|||
Enable semihosting mode (ARM, M68K, Xtensa, MIPS, Nios II only).
|
||||
ETEXI
|
||||
DEF("semihosting-config", HAS_ARG, QEMU_OPTION_semihosting_config,
|
||||
"-semihosting-config [enable=on|off][,target=native|gdb|auto][,arg=str[,...]]\n" \
|
||||
"-semihosting-config [enable=on|off][,target=native|gdb|auto][,chardev=id][,arg=str[,...]]\n" \
|
||||
" semihosting configuration\n",
|
||||
QEMU_ARCH_ARM | QEMU_ARCH_M68K | QEMU_ARCH_XTENSA | QEMU_ARCH_LM32 |
|
||||
QEMU_ARCH_MIPS | QEMU_ARCH_NIOS2)
|
||||
STEXI
|
||||
@item -semihosting-config [enable=on|off][,target=native|gdb|auto][,arg=str[,...]]
|
||||
@item -semihosting-config [enable=on|off][,target=native|gdb|auto][,chardev=id][,arg=str[,...]]
|
||||
@findex -semihosting-config
|
||||
Enable and configure semihosting (ARM, M68K, Xtensa, MIPS, Nios II only).
|
||||
@table @option
|
||||
|
@ -4038,6 +4038,8 @@ Enable and configure semihosting (ARM, M68K, Xtensa, MIPS, Nios II only).
|
|||
Defines where the semihosting calls will be addressed, to QEMU (@code{native})
|
||||
or to GDB (@code{gdb}). The default is @code{auto}, which means @code{gdb}
|
||||
during debug sessions and @code{native} otherwise.
|
||||
@item chardev=@var{str1}
|
||||
Send the output to a chardev backend output for native or auto output when not in gdb
|
||||
@item arg=@var{str1},arg=@var{str2},...
|
||||
Allows the user to pass input arguments, and can be used multiple times to build
|
||||
up a list. The old-style @code{-kernel}/@code{-append} method of passing a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue