From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehfbr-0002aj-2b for qemu-devel@nongnu.org; Fri, 02 Feb 2018 12:59:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehfYH-0006f9-DC for qemu-devel@nongnu.org; Fri, 02 Feb 2018 12:58:25 -0500 Received: from mail-ot0-x241.google.com ([2607:f8b0:4003:c0f::241]:34244) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ehfYH-0006em-1w for qemu-devel@nongnu.org; Fri, 02 Feb 2018 12:55:05 -0500 Received: by mail-ot0-x241.google.com with SMTP id x15so21075582ote.1 for ; Fri, 02 Feb 2018 09:55:04 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <1512670493-18114-1-git-send-email-peter.maydell@linaro.org> <1512670493-18114-5-git-send-email-peter.maydell@linaro.org> From: Peter Maydell Date: Fri, 2 Feb 2018 17:54:43 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 4/6] target/arm: Add "-cpu max" support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= Cc: qemu-arm , QEMU Developers , "Richard W . M . Jones" , Eduardo Habkost , "patches@linaro.org" On 26 January 2018 at 15:44, Philippe Mathieu-Daud=C3=A9 = wrote: > On 01/26/2018 11:33 AM, Peter Maydell wrote: >> On 26 January 2018 at 14:29, Philippe Mathieu-Daud=C3=A9 wrote: >>> Why not use arm_any_initfn() here? >> >> That function (and the 'any' cpu) are deliberately only >> included in the linux-user binaries, not the system-emulation binaries. > > why not use the V8 features? What v8 features? >> (Also arm_any_initfn() only initializes userspace-visible stuff, it >> doesn't provide ID register values etc for kernel-visible things.) > > I'd still use an unique arm_max_initfn() such > > // initializes userspace-visible stuff > #ifndef CONFIG_USER_ONLY > // initializes kernel-visible things > #endif >>> Actually what seems cleaner is to move "any" features here, and kill th= e >>> "any" cpu, using "max" for this purpose. >> >> We can't kill 'any', that would break back-compatibility >> of command lines. > > and use an alias for 'any' -> 'max' or just > > { .name =3D "any", .initfn =3D arm_max_initfn }, /* backward compat */ Yes, we could probably do something similar to this. thanks -- PMM