From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emJVI-00033D-KS for qemu-devel@nongnu.org; Thu, 15 Feb 2018 08:23:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emJVE-0005V6-FA for qemu-devel@nongnu.org; Thu, 15 Feb 2018 08:23:12 -0500 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:44058) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1emJVE-0005Ur-AF for qemu-devel@nongnu.org; Thu, 15 Feb 2018 08:23:08 -0500 Received: by mail-qk0-x241.google.com with SMTP id l23so7054681qkk.11 for ; Thu, 15 Feb 2018 05:23:08 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= References: From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Thu, 15 Feb 2018 10:23:04 -0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v5 3/6] bcm2836: Use the Cortex-A7 instead of Cortex-A15 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: Alistair Francis , qemu-devel@nongnu.org, alistair23@gmail.com, ehabkost@redhat.com, marcel@redhat.com, imammedo@redhat.com Hi Peter, On 02/01/2018 09:42 PM, Alistair Francis wrote: > The BCM2836 uses a Cortex-A7 not a Cortex-A15. Update the device to use > the correct CPU. > https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2836/QA7_rev3.4.pdf Can you add these lines with reference to the commits? When the BCM2836 was introduced (bad5623690b) the Cortex-A7 was not available, so the very similar Cortex-A15 was used. Since dcf578ed8ce we can model the correct core. Thanks! Phil. > Signed-off-by: Alistair Francis > Reviewed-by: Philippe Mathieu-Daudé > Reviewed-by: Igor Mammedov > --- > V3: > - Use ARM_CPU_TYPE_NAME() macro > V2: > - Fix the BCM2836 CPU > > hw/arm/bcm2836.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/arm/bcm2836.c b/hw/arm/bcm2836.c > index 8c43291112..c477772484 100644 > --- a/hw/arm/bcm2836.c > +++ b/hw/arm/bcm2836.c > @@ -30,7 +30,7 @@ static void bcm2836_init(Object *obj) > > for (n = 0; n < BCM2836_NCPUS; n++) { > object_initialize(&s->cpus[n], sizeof(s->cpus[n]), > - "cortex-a15-" TYPE_ARM_CPU); > + ARM_CPU_TYPE_NAME("cortex-a7")); > object_property_add_child(obj, "cpu[*]", OBJECT(&s->cpus[n]), > &error_abort); > } >