From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15511C43218 for ; Tue, 11 Jun 2019 13:26:30 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DEC992089E for ; Tue, 11 Jun 2019 13:26:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DEC992089E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=users.sourceforge.jp Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:58844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hagnF-0003k6-5D for qemu-devel@archiver.kernel.org; Tue, 11 Jun 2019 09:26:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50981) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hagiE-0000fk-2t for qemu-devel@nongnu.org; Tue, 11 Jun 2019 09:21:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hagi7-0006zJ-NE for qemu-devel@nongnu.org; Tue, 11 Jun 2019 09:21:15 -0400 Received: from mail03.asahi-net.or.jp ([202.224.55.15]:55931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hagi5-0006lv-GJ for qemu-devel@nongnu.org; Tue, 11 Jun 2019 09:21:11 -0400 Received: from h61-195-96-97.vps.ablenet.jp (h61-195-96-97.ablenetvps.ne.jp [61.195.96.97]) (Authenticated sender: PQ4Y-STU) by mail03.asahi-net.or.jp (Postfix) with ESMTPA id F360F492D9; Tue, 11 Jun 2019 22:21:03 +0900 (JST) Received: from yo-satoh-debian.ysato.ml (v096063.dynamic.ppp.asahi-net.or.jp [124.155.96.63]) by h61-195-96-97.vps.ablenet.jp (Postfix) with ESMTPSA id 2B2CB240085; Tue, 11 Jun 2019 22:21:01 +0900 (JST) Date: Tue, 11 Jun 2019 22:21:00 +0900 Message-ID: <87muiop8ar.wl-ysato@users.sourceforge.jp> From: Yoshinori Sato To: Philippe =?ISO-8859-1?Q?Mathieu-Daud=E9?= In-Reply-To: <20190611113731.16940-17-philmd@redhat.com> References: <20190611113731.16940-1-philmd@redhat.com> <20190611113731.16940-17-philmd@redhat.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 202.224.55.15 Subject: Re: [Qemu-devel] [PATCH v19 16/21] hw/rx: Restrict the RX62N microcontroller to the RX62N CPU core X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Igor Mammedov , Richard Henderson , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Tue, 11 Jun 2019 20:37:26 +0900, Philippe Mathieu-Daud=E9 wrote: >=20 > While the VIRT machine can use different microcontrollers, > the RX62N microcontroller is tied to the RX62N CPU core. >=20 > Signed-off-by: Philippe Mathieu-Daud=E9 Reviewed-by: Yoshinori Sato > --- > hw/rx/rx-virt.c | 8 ++++++++ > 1 file changed, 8 insertions(+) >=20 > diff --git a/hw/rx/rx-virt.c b/hw/rx/rx-virt.c > index ed0a3a1da0..797a090173 100644 > --- a/hw/rx/rx-virt.c > +++ b/hw/rx/rx-virt.c > @@ -17,6 +17,7 @@ > */ > =20 > #include "qemu/osdep.h" > +#include "qemu/error-report.h" > #include "qapi/error.h" > #include "qemu-common.h" > #include "cpu.h" > @@ -34,6 +35,7 @@ > =20 > static void rxvirt_init(MachineState *machine) > { > + MachineClass *mc =3D MACHINE_GET_CLASS(machine); > RX62NState *s =3D g_new(RX62NState, 1); > MemoryRegion *sysmem =3D get_system_memory(); > MemoryRegion *sdram =3D g_new(MemoryRegion, 1); > @@ -42,6 +44,12 @@ static void rxvirt_init(MachineState *machine) > void *dtb =3D NULL; > int dtb_size; > =20 > + if (strcmp(machine->cpu_type, mc->default_cpu_type) !=3D 0) { > + error_report("This board can only be used with CPU %s", > + mc->default_cpu_type); > + exit(1); > + } > + > /* Allocate memory space */ > memory_region_init_ram(sdram, NULL, "sdram", 16 * MiB, > &error_fatal); > --=20 > 2.20.1 >=20 --=20 Yosinori Sato