qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC PATCH] vl.c: add -semihosting-config "arg" sub-arg


From: Peter Maydell
Subject: Re: [Qemu-devel] [RFC PATCH] vl.c: add -semihosting-config "arg" sub-argument
Date: Thu, 16 Apr 2015 15:22:35 +0100

On 15 April 2015 at 10:09, Liviu Ionescu <address@hidden> wrote:
> we currently have two solutions:
>
> - multiple: --semihosting-config arg="..."
> - a single option, placed at the end, and followed by any number
>   of arguments: --semihosting-cmdline $@ \n
>
> both can generate the array of args required by UHI and both can pass
> args with spaces.

I strongly dislike the second of these options -- it is nothing like
the way QEMU's system-emulator mode handles other command line
arguments. (The user-mode executable is not a good model to try
to copy, because (a) its sole purpose is executing other binaries
and passing them command line options (b) it doesn't have the
QemuOptions infrastructure.)

I think the first syntax is fine. If you happen to be on ARM where
there's only a single 'semihosting arguments' string in the ABI
then you can just say --semihosting-config arg="foo bar baz".
This has the comma-escaping ugliness, of course, but if you're
providing a GUI for users anyway it's trivial for the GUI to
comma-escape things.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]