From nobody Sun Feb 8 17:47:48 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1560695931; cv=none; d=zoho.com; s=zohoarc; b=VhoAvWMctGg1M+nOesx7c/scysa1A8mWWmS8LnYcSQUqSa9tHNRVpYnWih4i3E97kGEhfJ7y6zricXuPN/KhAajl5/rcdh3Kgry+69pfpZ9njZglXiui0Qma1hM2vVvDBSSLxB4XhCigCRP7lW+X5fWF6ytGq73a77GWNNLd6TI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560695931; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=gZjlYFO6fwDuoUZHhW/5ttyyQTiHUBNPqjV599Gzz2A=; b=XAI+nnIXpoqOuU6wNWjS1+ZfDWDhf9C00vv10mZIHwTBS+PhG0RG7AM5v9CIZgtY7NCwHBpKSsuYKEpv15Hnx1E4/HWcZeW0jLd0smLvP1GOYyha+08JRo0DunT7rMg3MEcCxrcgWhWXD5xUZ8S/i+hN5HygoYOksNp31OE6yMY= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1560695931726331.10033678848083; Sun, 16 Jun 2019 07:38:51 -0700 (PDT) Received: from localhost ([::1]:40370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcWIv-00035O-JZ for importer@patchew.org; Sun, 16 Jun 2019 10:38:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36430) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcW9a-0005Mu-QM for qemu-devel@nongnu.org; Sun, 16 Jun 2019 10:29:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcW9X-0002Pc-Lz for qemu-devel@nongnu.org; Sun, 16 Jun 2019 10:29:06 -0400 Received: from mail01.asahi-net.or.jp ([202.224.55.13]:54602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hcW9X-0002NO-BQ for qemu-devel@nongnu.org; Sun, 16 Jun 2019 10:29:03 -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 mail01.asahi-net.or.jp (Postfix) with ESMTPA id E5732125E87; Sun, 16 Jun 2019 23:28:50 +0900 (JST) Received: from yo-satoh-debian.localdomain (ZM005235.ppp.dion.ne.jp [222.8.5.235]) by h61-195-96-97.vps.ablenet.jp (Postfix) with ESMTPSA id A3FF0240086; Sun, 16 Jun 2019 23:28:50 +0900 (JST) From: Yoshinori Sato To: qemu-devel@nongnu.org Date: Sun, 16 Jun 2019 23:28:31 +0900 Message-Id: <20190616142836.10614-20-ysato@users.sourceforge.jp> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190616142836.10614-1-ysato@users.sourceforge.jp> References: <20190616142836.10614-1-ysato@users.sourceforge.jp> MIME-Version: 1.0 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.13 Subject: [Qemu-devel] [PATCH v20 19/24] 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: peter.maydell@linaro.org, richard.henderson@linaro.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Yoshinori Sato Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Philippe Mathieu-Daud=C3=A9 While the VIRT machine can use different microcontrollers, the RX62N microcontroller is tied to the RX62N CPU core. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Yoshinori Sato --- hw/rx/rx-virt.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hw/rx/rx-virt.c b/hw/rx/rx-virt.c index 4cfe2e3123..9676a5e7bf 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" @@ -56,6 +57,7 @@ static void rx_load_image(RXCPU *cpu, const char *filenam= e, =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); @@ -64,6 +66,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.11.0