From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ruoqd-00054N-UU for qemu-devel@nongnu.org; Tue, 07 Feb 2012 12:28:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuoqY-0003zA-Sh for qemu-devel@nongnu.org; Tue, 07 Feb 2012 12:28:55 -0500 Received: from mail-qy0-f173.google.com ([209.85.216.173]:62820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuoqY-0003yv-Mn for qemu-devel@nongnu.org; Tue, 07 Feb 2012 12:28:50 -0500 Received: by qcsc20 with SMTP id c20so4447354qcs.4 for ; Tue, 07 Feb 2012 09:28:50 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1328237992-14953-9-git-send-email-afaerber@suse.de> References: <1328237992-14953-1-git-send-email-afaerber@suse.de> <1328237992-14953-9-git-send-email-afaerber@suse.de> Date: Tue, 7 Feb 2012 17:28:50 +0000 Message-ID: From: Peter Maydell Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH RFC v3 08/21] target-arm: Move CPU feature flags out of CPUState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Andreas_F=C3=A4rber?= Cc: qemu-devel@nongnu.org On 3 February 2012 02:59, Andreas F=C3=A4rber wrote: > +static void sa11xx_class_init(ARMCPUClass *k, const ARMCPUInfo *info) > +{ > + =C2=A0 =C2=A0set_class_feature(k, ARM_FEATURE_STRONGARM); > +} > =C2=A0static const ARMCPUInfo arm_cpus[] =3D { > =C2=A0 =C2=A0 { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 .name =3D "arm926", > =C2=A0 =C2=A0 =C2=A0 =C2=A0 .id =3D 0x41069265, > + =C2=A0 =C2=A0 =C2=A0 =C2=A0.features =3D ARM_FEATURE(V5) | > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0AR= M_FEATURE(VFP), > =C2=A0 =C2=A0 }, > =C2=A0 =C2=A0 { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 .name =3D "sa1100", > =C2=A0 =C2=A0 =C2=A0 =C2=A0 .id =3D 0x4401A11B, > + =C2=A0 =C2=A0 =C2=A0 =C2=A0.class_init =3D sa11xx_class_init, > =C2=A0 =C2=A0 }, So why are we handling some of these feature bits by setting them in .features, and some of them via a .class_init which sets the feature bit? -- PMM