From nobody Wed Nov 12 00:30:45 2025 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; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1567511383; cv=none; d=zoho.com; s=zohoarc; b=WP5w0bv11kfd1QLRWrC7itL36V6ilwDYXPrelw9tumH6RpPx9sTYNBJS0RPbUXnStyIYgaP2/TLqjMKo+OzjXRbn91s2O/S78R4dX6wsMoXPWvBLHfs4nQyEK/r2vpdZsPtoipMKWOPCEdKilWu6K0596FHEUHPXbxqpsS5FWRA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567511383; 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=wZqP6FJt+hTiFXJxez94gMCZ8XVH8RAjHZBLeVhT+z0=; b=cinr3AoNZYTuZgm59mXhx2IqLqxdY0cIzQoYNUHYuwL2hP1ZfTbhk07HQB6whzXNhyDi6OEVAYQwF8jY79GSfOAu+iq0H0fahef763MbywLMM5vUPvqjSB7xndrYa3JNFlul8GQp+2DgKFnOteN0CZp8D5Crec1qmimEuYkjOYc= 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; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1567511383182160.4610960443713; Tue, 3 Sep 2019 04:49:43 -0700 (PDT) Received: from localhost ([::1]:44418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i57Jd-0006kf-Fn for importer@patchew.org; Tue, 03 Sep 2019 07:49:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55069) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i57Hk-0004zK-5v for qemu-devel@nongnu.org; Tue, 03 Sep 2019 07:47:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i57Hj-0005uU-7b for qemu-devel@nongnu.org; Tue, 03 Sep 2019 07:47:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52158) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i57Hh-0005sZ-6n; Tue, 03 Sep 2019 07:47:41 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 858F25AFD9; Tue, 3 Sep 2019 11:47:40 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-102.brq.redhat.com [10.40.204.102]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4A12C5DAAC; Tue, 3 Sep 2019 11:47:38 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Tue, 3 Sep 2019 13:47:25 +0200 Message-Id: <20190903114729.3400-2-philmd@redhat.com> In-Reply-To: <20190903114729.3400-1-philmd@redhat.com> References: <20190903114729.3400-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 03 Sep 2019 11:47:40 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 1/5] Kconfig: Expose CONFIG_TCG to minikconf.py 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 , Thomas Huth , Richard Henderson , qemu-arm@nongnu.org, Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Expose the CONFIG_TCG selector to let minikconf.py uses it. This is useful with the --disable-tcg build, to deselect devices that are TCG-dependent. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- Kconfig.host | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Kconfig.host b/Kconfig.host index bb6e116e2a..c7caa47dfb 100644 --- a/Kconfig.host +++ b/Kconfig.host @@ -2,6 +2,10 @@ # down to Kconfig. See also MINIKCONF_ARGS in the Makefile: # these two need to be kept in sync. =20 +config TCG + bool + default y + config KVM bool =20 --=20 2.20.1 From nobody Wed Nov 12 00:30:45 2025 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; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1567511396; cv=none; d=zoho.com; s=zohoarc; b=YVZ9Ugkz+fVWkKkH9kieLdraeFaIEmzTFM8OeIti6yyeHoSfVmR3Z+cs8mbxxvEnFVUQ6CNasmTEtW+sQVK5w2aZR8TVRT9542QUWbgcz8YMgvbTtl5o51i7biWo1dhm+ze0HIwPNapoLN8mtTqfOEdo3t2hJCVk+GvlMXcvK3Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567511396; 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=tCLeVpbzcwj7JOaHQloyX+K6EcgVYwv+zhudsMAKWsk=; b=oAVJlSwMxngOzP6tdktQgiMKnfTTm/hka1gwGn0801VJOqOeahqniJd53hhiga9Thqvd9nRVDtGz3kqPl+/QBCbv7mlfYoq6EBZzSGGOruYglcyNgdYvNs713F0XgmF30uDG9RAkm//HRDmjCp3I3fW5JXWeg0AKa6Sr996F0pA= 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; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1567511396049962.22174174075; Tue, 3 Sep 2019 04:49:56 -0700 (PDT) Received: from localhost ([::1]:44424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i57Jq-00072s-91 for importer@patchew.org; Tue, 03 Sep 2019 07:49:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55110) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i57Hn-00053S-N2 for qemu-devel@nongnu.org; Tue, 03 Sep 2019 07:47:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i57Hm-0005x0-ID for qemu-devel@nongnu.org; Tue, 03 Sep 2019 07:47:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45190) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i57Hj-0005uh-UT; Tue, 03 Sep 2019 07:47:44 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3F17830603AA; Tue, 3 Sep 2019 11:47:43 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-102.brq.redhat.com [10.40.204.102]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 038345DAAC; Tue, 3 Sep 2019 11:47:40 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Tue, 3 Sep 2019 13:47:26 +0200 Message-Id: <20190903114729.3400-3-philmd@redhat.com> In-Reply-To: <20190903114729.3400-1-philmd@redhat.com> References: <20190903114729.3400-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Tue, 03 Sep 2019 11:47:43 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 2/5] target/arm: Restrict pre-ARMv7 cpus to TCG 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 , Thomas Huth , Richard Henderson , qemu-arm@nongnu.org, Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" KVM requires a cpu based on (at least) the ARMv7 architecture. The following CPUs are disabled: * ARMv4 - StrongARM (SA1100/1110) - OMAP1510 (TI925T) * ARMv5 - ARM926 - ARM946 - ARM1026 - XScale (PXA250/255/260/261/262/270) * ARMv6 - ARM1136 - ARM1176 - ARM11MPCore - Cortex-M0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- v2: fixed misplaced #endif (rth), list cpus --- target/arm/cpu.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 2399c14471..f69780147c 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1678,6 +1678,8 @@ static ObjectClass *arm_cpu_class_by_name(const char = *cpu_model) /* CPU models. These are not needed for the AArch64 linux-user build. */ #if !defined(CONFIG_USER_ONLY) || !defined(TARGET_AARCH64) =20 +#ifdef CONFIG_TCG + static void arm926_initfn(Object *obj) { ARMCPU *cpu =3D ARM_CPU(obj); @@ -1900,6 +1902,8 @@ static void cortex_m0_initfn(Object *obj) cpu->midr =3D 0x410cc200; } =20 +#endif + static void cortex_m3_initfn(Object *obj) { ARMCPU *cpu =3D ARM_CPU(obj); @@ -2283,6 +2287,8 @@ static void cortex_a15_initfn(Object *obj) define_arm_cp_regs(cpu, cortexa15_cp_reginfo); } =20 +#ifdef CONFIG_TCG + static void ti925t_initfn(Object *obj) { ARMCPU *cpu =3D ARM_CPU(obj); @@ -2451,6 +2457,8 @@ static void pxa270c5_initfn(Object *obj) cpu->reset_sctlr =3D 0x00000078; } =20 +#endif + #ifndef TARGET_AARCH64 /* -cpu max: if KVM is enabled, like -cpu host (best possible with this ho= st); * otherwise, a CPU with as many features enabled as our emulation support= s. @@ -2523,6 +2531,7 @@ struct ARMCPUInfo { =20 static const ARMCPUInfo arm_cpus[] =3D { #if !defined(CONFIG_USER_ONLY) || !defined(TARGET_AARCH64) +#ifdef CONFIG_TCG { .name =3D "arm926", .initfn =3D arm926_initfn }, { .name =3D "arm946", .initfn =3D arm946_initfn }, { .name =3D "arm1026", .initfn =3D arm1026_initfn }, @@ -2536,6 +2545,7 @@ static const ARMCPUInfo arm_cpus[] =3D { { .name =3D "arm11mpcore", .initfn =3D arm11mpcore_initfn }, { .name =3D "cortex-m0", .initfn =3D cortex_m0_initfn, .class_init =3D arm_v7m_class_init }, +#endif { .name =3D "cortex-m3", .initfn =3D cortex_m3_initfn, .class_init =3D arm_v7m_class_init }, { .name =3D "cortex-m4", .initfn =3D cortex_m4_initfn, @@ -2548,6 +2558,7 @@ static const ARMCPUInfo arm_cpus[] =3D { { .name =3D "cortex-a8", .initfn =3D cortex_a8_initfn }, { .name =3D "cortex-a9", .initfn =3D cortex_a9_initfn }, { .name =3D "cortex-a15", .initfn =3D cortex_a15_initfn }, +#ifdef CONFIG_TCG { .name =3D "ti925t", .initfn =3D ti925t_initfn }, { .name =3D "sa1100", .initfn =3D sa1100_initfn }, { .name =3D "sa1110", .initfn =3D sa1110_initfn }, @@ -2564,6 +2575,7 @@ static const ARMCPUInfo arm_cpus[] =3D { { .name =3D "pxa270-b1", .initfn =3D pxa270b1_initfn }, { .name =3D "pxa270-c0", .initfn =3D pxa270c0_initfn }, { .name =3D "pxa270-c5", .initfn =3D pxa270c5_initfn }, +#endif #ifndef TARGET_AARCH64 { .name =3D "max", .initfn =3D arm_max_initfn }, #endif --=20 2.20.1 From nobody Wed Nov 12 00:30:45 2025 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; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1567511389; cv=none; d=zoho.com; s=zohoarc; b=NawYK7f6c15h2px9Xp/mYiwV4C8qQJzDqnLmER28TbUYLaBP/204HFOXo/f0pHQpsDICRENrF8j6edTIHOSGi0IeJttRYrGvzxge4Z9zljzZp4eHlgN1jNhJfE2GxTroOHaJStlH6koXmB6JkmPW59QJafvbG+5qto5m5RFRNF0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567511389; 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=b3KKdZDcdc04PsiHX8pE+quiCVd0795OHr3iAnsKDeA=; b=WVWkjDjpfLWi7lz+6K0DrGxjks2/lLf8CG5jstKOknOp9Z+KgP7XU/p2EJqylFb6p0HoaBcXBRjEEy3ZVVxYq0O8sHhAMi6KSzc1/CkN6B2HUQ7SUQVn+RQ40ja0YcllBv268qlz2Z/favesGX1ohU+gQmtbXJ1ATZ/IAT4/E5M= 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; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1567511389033339.53584559234275; Tue, 3 Sep 2019 04:49:49 -0700 (PDT) Received: from localhost ([::1]:44420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i57Jj-0006sn-DO for importer@patchew.org; Tue, 03 Sep 2019 07:49:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55149) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i57Hq-00056S-HJ for qemu-devel@nongnu.org; Tue, 03 Sep 2019 07:47:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i57Hp-0005zb-FV for qemu-devel@nongnu.org; Tue, 03 Sep 2019 07:47:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39348) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i57Hn-0005xA-6I; Tue, 03 Sep 2019 07:47:47 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8016685360; Tue, 3 Sep 2019 11:47:46 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-102.brq.redhat.com [10.40.204.102]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E580F5DA5B; Tue, 3 Sep 2019 11:47:43 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Tue, 3 Sep 2019 13:47:27 +0200 Message-Id: <20190903114729.3400-4-philmd@redhat.com> In-Reply-To: <20190903114729.3400-1-philmd@redhat.com> References: <20190903114729.3400-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 03 Sep 2019 11:47:46 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 3/5] hw/arm: Restrict pre-ARMv7 cpus to TCG 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 , Thomas Huth , Richard Henderson , qemu-arm@nongnu.org, Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" A KVM-only build won't be able to run pre-ARMv7 cpus, disable them. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Alistair Francis --- v2: - "depends on !KVM" -> "depends on TCG" (rth) - do not modify default-configs/arm-softmmu.mak (thuth) --- hw/arm/Kconfig | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 76a2a6bcbf..1c359a6f47 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -1,3 +1,15 @@ +config ARM_V4 + depends on TCG + bool + +config ARM_V5 + depends on TCG + bool + +config ARM_V6 + depends on TCG + bool + config ARM_VIRT bool imply PCI_DEVICES @@ -23,6 +35,7 @@ config ARM_VIRT =20 config CHEETAH bool + select ARM_V4 select OMAP select TSC210X =20 @@ -32,6 +45,7 @@ config CUBIEBOARD =20 config DIGIC bool + select ARM_V5 select PTIMER select PFLASH_CFI02 =20 @@ -61,6 +75,7 @@ config HIGHBANK =20 config INTEGRATOR bool + select ARM_V5 select ARM_TIMER select INTEGRATOR_DEBUG select PL011 # UART @@ -86,6 +101,7 @@ config MUSCA =20 config MUSICPAL bool + select ARM_V5 select BITBANG_I2C select MARVELL_88W8618 select PTIMER @@ -99,6 +115,7 @@ config NETDUINO2 =20 config NSERIES bool + select ARM_V6 select OMAP select TMP105 # tempature sensor select BLIZZARD # LCD/TV controller @@ -121,6 +138,7 @@ config OMAP =20 config PXA2XX bool + select ARM_V5 select FRAMEBUFFER select I2C select SERIAL @@ -232,10 +250,12 @@ config COLLIE =20 config SX1 bool + select ARM_V4 select OMAP =20 config VERSATILE bool + select ARM_V5 select ARM_TIMER # sp804 select PFLASH_CFI01 select LSI_SCSI_PCI @@ -327,6 +347,7 @@ config XLNX_VERSAL =20 config FSL_IMX25 bool + select ARM_V5 select IMX select IMX_FEC select IMX_I2C @@ -334,6 +355,7 @@ config FSL_IMX25 =20 config FSL_IMX31 bool + select ARM_V6 select SERIAL select IMX select IMX_I2C @@ -349,6 +371,7 @@ config FSL_IMX6 =20 config ASPEED_SOC bool + select ARM_V5 select DS1338 select FTGMAC100 select I2C --=20 2.20.1 From nobody Wed Nov 12 00:30:45 2025 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; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1567511515; cv=none; d=zoho.com; s=zohoarc; b=dgR4Tn6xNl6nOPhbJ1igxXTu4jZrGkS3SGPipav6ZDvnfz9Af0JBqiqFZz1gfu6sY/zzCtMvtzbD48q7XmMh7YqLRhoJcqRRjN+JzKKD5IcfFMlELeCD5MwCWQrys3Edjnq/oTgRJ3gVmiTRj6JtVdWail8RNzDIF5bcAYwwwn8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567511515; 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=F828P8WqelRrJ4rtCmRQmYIJjqcojiekaEL2qPmRFvw=; b=dM/PrQtFw0NFH472ekVYNYwrsfi5JClD5Tx2TKpW50S5uqk4OOMa2UozotYcdYDqDvDnBwQWC7lX/u+qcEaTLYMJteQztxbvI99x2inLbgAW8f4NGBjZ10cYKXn+cvoDx0w5IOK/Gwk9a0bTC3fgIy1BlFiX/4DANbVjW8qfNZE= 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; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1567511515433376.8078528626123; Tue, 3 Sep 2019 04:51:55 -0700 (PDT) Received: from localhost ([::1]:44448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i57Lm-0001b6-6O for importer@patchew.org; Tue, 03 Sep 2019 07:51:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55175) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i57Ht-0005A5-HX for qemu-devel@nongnu.org; Tue, 03 Sep 2019 07:47:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i57Hs-00061l-Fg for qemu-devel@nongnu.org; Tue, 03 Sep 2019 07:47:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57510) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i57Hq-0005zk-8d; Tue, 03 Sep 2019 07:47:50 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7F43A30832EA; Tue, 3 Sep 2019 11:47:49 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-102.brq.redhat.com [10.40.204.102]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EAFAF67600; Tue, 3 Sep 2019 11:47:46 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Tue, 3 Sep 2019 13:47:28 +0200 Message-Id: <20190903114729.3400-5-philmd@redhat.com> In-Reply-To: <20190903114729.3400-1-philmd@redhat.com> References: <20190903114729.3400-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Tue, 03 Sep 2019 11:47:49 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 4/5] target/arm: Restrict R and M profiles to TCG 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 , Thomas Huth , Richard Henderson , qemu-arm@nongnu.org, Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" KVM is only able to run on CPUs based on the A-Profile architecture. The following CPUs are disabled: * M-Profile Architecture - Cortex-M3 - Cortex-M4 - Cortex-M33 * R-Profile Architecture - Cortex-R5 - Cortex-R5F Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- v2: list cpus --- target/arm/cpu.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index f69780147c..299c59fde4 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -462,7 +462,9 @@ bool arm_cpu_exec_interrupt(CPUState *cs, int interrupt= _request) return ret; } =20 -#if !defined(CONFIG_USER_ONLY) || !defined(TARGET_AARCH64) +/* CPU models. These are not needed for the AArch64 linux-user build. */ +#if (!defined(CONFIG_USER_ONLY) || !defined(TARGET_AARCH64)) \ + && defined(CONFIG_TCG) static bool arm_v7m_cpu_exec_interrupt(CPUState *cs, int interrupt_request) { CPUClass *cc =3D CPU_GET_CLASS(cs); @@ -1902,8 +1904,6 @@ static void cortex_m0_initfn(Object *obj) cpu->midr =3D 0x410cc200; } =20 -#endif - static void cortex_m3_initfn(Object *obj) { ARMCPU *cpu =3D ARM_CPU(obj); @@ -2057,6 +2057,8 @@ static void cortex_r5f_initfn(Object *obj) cpu->isar.mvfr1 =3D 0x00000011; } =20 +#endif + static const ARMCPRegInfo cortexa8_cp_reginfo[] =3D { { .name =3D "L2LOCKDOWN", .cp =3D 15, .crn =3D 9, .crm =3D 0, .opc1 = =3D 1, .opc2 =3D 0, .access =3D PL1_RW, .type =3D ARM_CP_CONST, .resetvalue =3D 0 }, @@ -2545,7 +2547,6 @@ static const ARMCPUInfo arm_cpus[] =3D { { .name =3D "arm11mpcore", .initfn =3D arm11mpcore_initfn }, { .name =3D "cortex-m0", .initfn =3D cortex_m0_initfn, .class_init =3D arm_v7m_class_init }, -#endif { .name =3D "cortex-m3", .initfn =3D cortex_m3_initfn, .class_init =3D arm_v7m_class_init }, { .name =3D "cortex-m4", .initfn =3D cortex_m4_initfn, @@ -2554,6 +2555,7 @@ static const ARMCPUInfo arm_cpus[] =3D { .class_init =3D arm_v7m_class_init }, { .name =3D "cortex-r5", .initfn =3D cortex_r5_initfn }, { .name =3D "cortex-r5f", .initfn =3D cortex_r5f_initfn }, +#endif { .name =3D "cortex-a7", .initfn =3D cortex_a7_initfn }, { .name =3D "cortex-a8", .initfn =3D cortex_a8_initfn }, { .name =3D "cortex-a9", .initfn =3D cortex_a9_initfn }, --=20 2.20.1 From nobody Wed Nov 12 00:30:45 2025 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; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1567511526; cv=none; d=zoho.com; s=zohoarc; b=JdvL/ETBPUmP3ykCQVNXSJv9lI6Nq1PYfQuGA9bSZVcRBA0C7gTPGkG2Sw06ij102QVACzfOLhuuxiGZjsF4vjmkrjSxv3MQDeQ/unKih96ncipEyqlOvKh+AHbuHbBtjEo7HuP0Rpewwl2naHE+iva1rMeryrNWIvMWS/1HW64= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567511526; 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=q/JybXqDHZy19qGpVrVJ05xNka2RSFVw+qbHXzCFxVg=; b=iGaakzZa7C0ViOBp0CUP2J+z4IlB/nkY7CbW0wD463L+/z7infGE+Hcmjkv4+ka0FWoaQOOhk57d6FHk1GleXyh3l52b7dotZckWC1eZuolg6Cy4wM1iSTtYH0FcSvlqFgmcNNXJFqr9JtY4NSnMYEnOLxqEVXlpf3gYG9zy4dI= 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; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1567511526772815.549717276598; Tue, 3 Sep 2019 04:52:06 -0700 (PDT) Received: from localhost ([::1]:44450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i57Lx-0001pW-Cv for importer@patchew.org; Tue, 03 Sep 2019 07:52:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55208) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i57Hz-0005Gk-87 for qemu-devel@nongnu.org; Tue, 03 Sep 2019 07:48:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i57Hy-00065d-8m for qemu-devel@nongnu.org; Tue, 03 Sep 2019 07:47:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39388) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i57Hw-000642-AB; Tue, 03 Sep 2019 07:47:56 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A20CF85365; Tue, 3 Sep 2019 11:47:55 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-102.brq.redhat.com [10.40.204.102]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 444585DA5B; Tue, 3 Sep 2019 11:47:49 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Tue, 3 Sep 2019 13:47:29 +0200 Message-Id: <20190903114729.3400-6-philmd@redhat.com> In-Reply-To: <20190903114729.3400-1-philmd@redhat.com> References: <20190903114729.3400-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 03 Sep 2019 11:47:55 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 5/5] hw/arm: Restrict R and M profiles to TCG 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 , Thomas Huth , Richard Henderson , qemu-arm@nongnu.org, Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" A KVM-only build won't be able to run A or M-profile cpus, disable them. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- v2: - "depends on !KVM" -> "depends on TCG" (rth) - do not modify default-configs/arm-softmmu.mak (thuth) --- hw/arm/Kconfig | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 1c359a6f47..8368666f5a 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -10,6 +10,16 @@ config ARM_V6 depends on TCG bool =20 +# ARM Microcontroller profile +config ARM_V7M + depends on TCG + bool + +# ARM Realtime profile +config ARM_V7R + depends on TCG + bool + config ARM_VIRT bool imply PCI_DEVICES @@ -295,9 +305,6 @@ config ZYNQ select XILINX_SPIPS select ZYNQ_DEVCFG =20 -config ARM_V7M - bool - config ALLWINNER_A10 bool select AHCI @@ -325,6 +332,7 @@ config STM32F205_SOC =20 config XLNX_ZYNQMP_ARM bool + select ARM_V7R select AHCI select ARM_GIC select CADENCE --=20 2.20.1