From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FfErf-0005xC-Fl for qemu-devel@nongnu.org; Sun, 14 May 2006 07:34:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FfEra-0005wf-LP for qemu-devel@nongnu.org; Sun, 14 May 2006 07:34:23 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfEra-0005wY-Fi for qemu-devel@nongnu.org; Sun, 14 May 2006 07:34:18 -0400 Received: from [193.7.176.20] (helo=bender.bawue.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1FfEtl-0000bu-C1 for qemu-devel@nongnu.org; Sun, 14 May 2006 07:36:33 -0400 Received: from lagash (88-106-136-76.dynamic.dsl.as9105.com [88.106.136.76]) (using TLSv1 with cipher DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by bender.bawue.de (Postfix) with ESMTP id 9DD5A454A8 for ; Sun, 14 May 2006 13:34:15 +0200 (MEST) Received: from ths by lagash with local (Exim 4.62) (envelope-from ) id 1FfErR-0004VF-J4 for qemu-devel@nongnu.org; Sun, 14 May 2006 12:34:09 +0100 Date: Sun, 14 May 2006 12:34:09 +0100 Subject: Re: [Qemu-devel][PATCH]Get machine name from name of executable Message-ID: <20060514113409.GA800@networkno.de> References: <44670987.1030203@mail.berlios.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44670987.1030203@mail.berlios.de> From: Thiemo Seufer Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Stefan Weil wrote: > Today, QEMU allows machine selection using command line option -M. > Without this option, it will always take the first machine > for the given target architecture. > > With my patch, QEMU first parses the name of the executable. > The string after the last '-' is interpreted as machine name. > If this machine does not exist, the first machine is taken, > so the new QEMU remains compatible with the old behaviour. > > With this patch, an installation might link e.g. qemu-system-arm > to qemu-system-arm-integratorcp926, and running > qemu-system-arm-integratorcp926 > will automatically select machine integratorcp926. > > My goal is a MIPS emulation which supports big and little endian mode > in the same executable (like the real hardware). qemu-system-mipsel > would be a symbolic link to qemu-system-mips and enable little endian mode. A similiar approach was abandoned years ago in the case of GNU ls/dir/vdir due to continuous trouble on non-posix systems, and the potential of unexpected results with this aproach. (E.g. what happens if somebody adds a symlink qemu-default -> qemu-system-mipsel). Thiemo