From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Yang Zhong" <yang.zhong@intel.com>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Andrew Jones" <drjones@redhat.com>,
"Samuel Ortiz" <sameo@linux.intel.com>,
"Rob Bradford" <robert.bradford@intel.com>,
"Philippe Mathieu-Daudé" <philmd@redhat.com>,
"Thomas Huth" <thuth@redhat.com>,
qemu-arm@nongnu.org, "Paolo Bonzini" <pbonzini@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>
Subject: [Qemu-devel] [PATCH v4 7/8] RFC target/arm: Do not build A/M-profile cpus when using KVM
Date: Mon, 1 Jul 2019 21:49:41 +0200 [thread overview]
Message-ID: <20190701194942.10092-8-philmd@redhat.com> (raw)
In-Reply-To: <20190701194942.10092-1-philmd@redhat.com>
A KVM-only build won't be able to run A or M-profile cpus,
disable them.
If KVM is not enabled, they are enabled by default.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
Sadly this does not work with --enable-tcg --enable-kvm dual config.
---
default-configs/arm-softmmu.mak | 14 ++++++--------
hw/arm/Kconfig | 16 +++++++++++++---
2 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/default-configs/arm-softmmu.mak b/default-configs/arm-softmmu.mak
index 081d507c87..3995c4bb65 100644
--- a/default-configs/arm-softmmu.mak
+++ b/default-configs/arm-softmmu.mak
@@ -1,25 +1,18 @@
# Default configuration for arm-softmmu
-# TODO: ARM_V7M is currently always required - make this more flexible!
-CONFIG_ARM_V7M=y
-
# CONFIG_PCI_DEVICES=n
# CONFIG_TEST_DEVICES=n
+CONFIG_ARM_V7M=n
CONFIG_ARM_VIRT=y
CONFIG_CUBIEBOARD=y
CONFIG_EXYNOS4=y
CONFIG_FSL_IMX31=y
-CONFIG_MUSCA=y
-CONFIG_STELLARIS=y
CONFIG_REALVIEW=y
CONFIG_VEXPRESS=y
CONFIG_ZYNQ=y
-CONFIG_NETDUINO2=y
-CONFIG_MPS2=y
CONFIG_RASPI=y
CONFIG_SABRELITE=y
-CONFIG_EMCRAFT_SF2=y
CONFIG_FSL_IMX7=y
CONFIG_FSL_IMX6UL=y
CONFIG_SEMIHOSTING=y
@@ -38,4 +31,9 @@ CONFIG_SEMIHOSTING=y
#CONFIG_ASPEED_SOC=y
#CONFIG_NSERIES=y
#CONFIG_HIGHBANK=n
+#CONFIG_MUSCA=n
+#CONFIG_STELLARIS=n
+#CONFIG_NETDUINO2=n
+#CONFIG_MPS2=n
+#CONFIG_EMCRAFT_SF2=n
#CONFIG_MICROBIT=n
diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig
index b4d31c6026..f8242068ad 100644
--- a/hw/arm/Kconfig
+++ b/hw/arm/Kconfig
@@ -13,6 +13,18 @@ config ARM_V6
depends on !KVM
bool
+# ARM Microcontroller profile
+config ARM_V7M
+ default y
+ depends on !KVM
+ bool
+
+# ARM Realtime profile
+config ARM_V7R
+ default y
+ depends on !KVM
+ bool
+
config ARM_VIRT
bool
imply PCI_DEVICES
@@ -295,9 +307,6 @@ config ZYNQ
select XILINX_SPIPS
select ZYNQ_DEVCFG
-config ARM_V7M
- bool
-
config ALLWINNER_A10
bool
select AHCI
@@ -323,6 +332,7 @@ config STM32F205_SOC
config XLNX_ZYNQMP_ARM
bool
+ select ARM_V7R
select AHCI
select ARM_GIC
select CADENCE
--
2.20.1
next prev parent reply other threads:[~2019-07-01 22:24 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-01 19:49 [Qemu-devel] [PATCH v4 0/8] Support disabling TCG on ARM Philippe Mathieu-Daudé
2019-07-01 19:49 ` [Qemu-devel] [PATCH v4 1/8] target/arm: Move debug routines to debug_helper.c Philippe Mathieu-Daudé
2019-07-01 19:49 ` [Qemu-devel] [PATCH v4 2/8] target/arm: Restrict semi-hosting to TCG Philippe Mathieu-Daudé
2019-07-02 13:58 ` Peter Maydell
2019-07-01 19:49 ` [Qemu-devel] [PATCH v4 3/8] target/arm/helper: Move M profile routines to m_helper.c Philippe Mathieu-Daudé
2019-07-02 14:01 ` Peter Maydell
2019-07-02 14:18 ` Philippe Mathieu-Daudé
2019-07-01 19:49 ` [Qemu-devel] [PATCH v4 4/8] RFC target/arm: Restrict pre-ARMv7 cpus to TCG Philippe Mathieu-Daudé
2019-07-01 19:49 ` [Qemu-devel] [PATCH v4 5/8] RFC target/arm: Do not build pre-ARMv7 cpus when using KVM Philippe Mathieu-Daudé
2019-07-01 19:49 ` [Qemu-devel] [PATCH v4 6/8] RFC target/arm: Restrict R and M profiles to TCG Philippe Mathieu-Daudé
2019-07-01 19:49 ` Philippe Mathieu-Daudé [this message]
2019-07-01 19:49 ` [Qemu-devel] [PATCH v4 8/8] target/arm: Do not build TCG objects when TCG is off Philippe Mathieu-Daudé
2019-07-02 14:08 ` [Qemu-devel] [PATCH v4 0/8] Support disabling TCG on ARM Peter Maydell
2019-08-09 20:22 ` Philippe Mathieu-Daudé
2019-08-12 9:06 ` Philippe Mathieu-Daudé
2019-07-02 17:47 ` no-reply
2019-07-03 14:03 ` no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190701194942.10092-8-philmd@redhat.com \
--to=philmd@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=drjones@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=robert.bradford@intel.com \
--cc=sameo@linux.intel.com \
--cc=thuth@redhat.com \
--cc=yang.zhong@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).