From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkYKB-0000NY-Hb for qemu-devel@nongnu.org; Tue, 21 Apr 2015 09:34:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkYK7-0000s1-SJ for qemu-devel@nongnu.org; Tue, 21 Apr 2015 09:34:51 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:61183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkYK7-0000r4-MY for qemu-devel@nongnu.org; Tue, 21 Apr 2015 09:34:47 -0400 Message-ID: <553651ED.9080209@imgtec.com> Date: Tue, 21 Apr 2015 14:34:37 +0100 From: Leon Alrae MIME-Version: 1.0 References: <1427894283-31953-1-git-send-email-leon.alrae@imgtec.com> <9DE872C8-4AE3-48FC-B4A1-61ADE4DB7F32@livius.net> <551CF623.7040506@imgtec.com> <551D086D.9010604@imgtec.com> <551D1BC2.10408@imgtec.com> <1C30C43D-CD89-4EBF-991A-9CC53019ED7B@livius.net> <6D39441BF12EF246A7ABCE6654B023532101BA54@LEMAIL01.le.imgtec.org> <1741D364-48FC-4682-B660-82A5B48F8DE4@livius.net> <55255556.8020504@imgtec.com> <2A76D025-D3C9-4023-B48B-F6870998C99A@livius.net> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH] vl.c: add -semihosting-config "arg" sub-argument List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Liviu Ionescu Cc: "christopher.covington@linaro.org" , Matthew Fortune , "qemu-devel@nongnu.org" On 16/04/2015 15:22, Peter Maydell wrote: > On 15 April 2015 at 10:09, Liviu Ionescu 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. The patch which started this thread is the way to go then. I'll resend the patch with dropped "RFC" as I would really like to go forward and finally close this issue. Thanks, Leon (PS: --semihosting-cmdline $@ is probably the most convenient from GUI / wrapper point of view, but I don't have an opinion whether this is enough to justify adding a top level QEMU command line option with such a unique syntax)