Received: from eggs.gnu.org ([208.118.235.92]:33942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYFUU-00012D-Jt for qemu-devel@nongnu.org; Tue, 13 Nov 2012 07:21:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYFUR-0000HP-Hk for qemu-devel@nongnu.org; Tue, 13 Nov 2012 07:21:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:23816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYFUR-0000HL-8g for qemu-devel@nongnu.org; Tue, 13 Nov 2012 07:21:15 -0500 Date: Tue, 13 Nov 2012 10:22:23 -0200 From: Eduardo Habkost Message-ID: <20121113122222.GL3149@otherpad.lan.raisama.net> References: <1334421743-31146-1-git-send-email-peter.maydell@linaro.org> <1334421743-31146-3-git-send-email-peter.maydell@linaro.org> <20121112221619.GH8231@otherpad.lan.raisama.net> <20121112223342.GK3149@otherpad.lan.raisama.net> <50A2344F.3000800@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <50A2344F.3000800@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 01/14] target-arm: Add QOM subclasses for each ARM cpu implementation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: Peter Maydell , Anthony Liguori , patches@linaro.org, qemu-devel@nongnu.org, Paul Brook On Tue, Nov 13, 2012 at 12:51:43PM +0100, Andreas F=E4rber wrote: > Am 12.11.2012 23:33, schrieb Eduardo Habkost: > > On Mon, Nov 12, 2012 at 10:18:29PM +0000, Peter Maydell wrote: > >> On 12 November 2012 22:16, Eduardo Habkost wro= te: > >>> On Sat, Apr 14, 2012 at 05:42:10PM +0100, Peter Maydell wrote: > >>>> +static const ARMCPUInfo arm_cpus[] =3D { > >>> [...] > >>>> + { .name =3D "any", .initfn =3D arm_any_initfn }, > >>>> +}; > >>>> + > >>> > >>> Do we really want to use "any" as the class name? > >> > >> Probably not, since it would make it tricky to (in some future > >> utopia) have a QEMU which supported more than one CPU architecture > >> in the same binary if they all wanted to use "any"... > >=20 > > In that case, "cpu-any" wouldn't work, either. What about > > "-cpu-"? >=20 > Fine with me. However, keep in mind the previous approach was used for > command line compatibility: I would like to continue using -cpu > cortex-a9 rather than -cpu arm-cpu-cortex-a9. :) Me too. We need keep "-cpu SandyBridge" working, instead of requiring "-cpu x86_64-cpu-SandyBridge". "-cpu FOO" could first try a class named "-cpu-FOO" (for compatibility), then fallback to "FOO". >=20 > If we introduce a more complex command-line-to-class mapping, can't we > drop these ominous "any" CPUs altogether? For my understanding they wer= e > used as wildcard CPUs for *-user. We could do the same by instantiating > a real CPU like "cortex-a15" and possibly enabling some additional > features afterwards. I didn't look so deeply at the code, to understand what "any" does, and why it exists. But whatever we do, I suppose we need to keep "-cpu any" working, for compatibility. >=20 > Andreas >=20 > >>> Maybe we should use > >>> "cpu-" as the namespace for the CPU model class names? > >> > >> Sounds reasonable. > >> > >> -- PMM >=20 > --=20 > SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany > GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrn= berg --=20 Eduardo