From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkcIs-0000wa-C8 for qemu-devel@nongnu.org; Tue, 21 Apr 2015 13:49:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkcIp-0007up-67 for qemu-devel@nongnu.org; Tue, 21 Apr 2015 13:49:46 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:37656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkcIp-0007ua-05 for qemu-devel@nongnu.org; Tue, 21 Apr 2015 13:49:43 -0400 Received: by widdi4 with SMTP id di4so30488867wid.0 for ; Tue, 21 Apr 2015 10:49:42 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) From: Liviu Ionescu In-Reply-To: Date: Tue, 21 Apr 2015 20:49:37 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <29C73B3A-BCF0-4339-B5EC-3C6EFAF4AA67@livius.net> 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> <553651ED.9080209@imgtec.com> <3CDEFB52-C1C6-4012-AEFA-0630706AAF74@livius.net> <55367F7B.4080303@redhat.com> 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 Cc: "christopher.covington@linaro.org" , Leon Alrae , Matthew Fortune , "qemu-devel@nongnu.org" > On 21 Apr 2015, at 19:54, Peter Maydell = wrote: >=20 > Incidentally if you have a better idea for achieving the > desired goal than this messing around with comma-escaping > I would really like to know. I don't like either of the > current two proposals very much :-( please keep in mind that the main use of passing semihosting arguments = is running unit tests. I run lots of unit tests natively (although my main interest is for = embedded, properly written tests are portable and have no problem = running on OS X/Linux/Windos); I would like to run the same tests cross = compiled for ARM and executed on QEMU. the native tests are invoked with something like: .../osx/test1 arg1 ... argn .../linux/test1 arg1 ... argn ideally the ARM tests would be invoked similarly: qemu-wraper .../arm/test1 arg1 ... argn similarly when running the native tests on windows (compiled with = MinGW-w64), I need a wrapper to run the ARM tests with QEMU from a .BAT = file (I keep the windows setup minimal, I do not want to install msys2 = only to run a shell script) as you can see, for this use case the "--semihosting-cmdline $@" is the = natural solution, but if you prefer the comma separated arg=3D syntax = and we can provide the proper wrappers, then it should be just a = nuisance, not a show stopper. regards, Liviu