From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvQz1-0004sC-BC for qemu-devel@nongnu.org; Thu, 21 May 2015 09:58:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvQyx-0007nr-B6 for qemu-devel@nongnu.org; Thu, 21 May 2015 09:57:59 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:21197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvQyx-0007mc-5x for qemu-devel@nongnu.org; Thu, 21 May 2015 09:57:55 -0400 Message-ID: <555DE45B.4030101@imgtec.com> Date: Thu, 21 May 2015 14:57:47 +0100 From: Leon Alrae MIME-Version: 1.0 References: <1431085311-24617-1-git-send-email-leon.alrae@imgtec.com> <1431085311-24617-3-git-send-email-leon.alrae@imgtec.com> <555C41BF.3070900@imgtec.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 2/2] semihosting: add --semihosting-config arg sub-argument List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Liviu Ionescu , Christopher Covington , QEMU Developers , Matthew Fortune On 20/05/2015 09:54, Peter Maydell wrote: > On 20 May 2015 at 09:11, Leon Alrae wrote: >> Agreed. We could initialize semihosting.argv[0] with -kernel and argv[1] >> with -append string if in semihosting mode and no semihosting args have >> been specified. I'll update it in v4. > > I'm tempted to suggest splitting -append on whitespace to initialize > argv[1..n]. ARM will just re-concatenate it, but it seems more > useful for the non-ARM cases. I've been considering that, and I think we are better off without splitting -append in semihosting mode because this is at least consistent with MIPS machines in QEMU (in non-semihosting mode) -- pseudo-bootloaders in MALTA and Fulong2e have hardcoded argc to 2 (-kernel and -append). Therefore I would leave it as it is unless we really need to change it. Leon