From: Paolo Bonzini <pbonzini@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Fabiano Rosas" <farosas@suse.de>,
qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org, "Peter Maydell" <peter.maydell@linaro.org>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Thomas Huth" <thuth@redhat.com>
Subject: Re: [PATCH v3 2/3] target/arm: Select CONFIG_ARM_V7M when TCG is enabled
Date: Tue, 9 May 2023 17:24:14 +0200 [thread overview]
Message-ID: <40863bd4-1aad-2428-7976-f31e6b7b893f@redhat.com> (raw)
In-Reply-To: <d51de29f-a23f-be79-049a-f15df2be7ac6@linaro.org>
On 5/9/23 16:49, Philippe Mathieu-Daudé wrote:
> On 8/5/23 20:16, Fabiano Rosas wrote:
>> We cannot allow this config to be disabled at the moment as not all of
>> the relevant code is protected by it.
>>
>> Commit 29d9efca16 ("arm/Kconfig: Do not build TCG-only boards on a
>> KVM-only build") moved the CONFIGs of several boards to Kconfig, so it
>> is now possible that nothing selects ARM_V7M (e.g. when doing a
>> --without-default-devices build).
>>
>> Return the CONFIG_ARM_V7M entry to a state where it is always selected
>> whenever TCG is available.
>>
>> Fixes: 29d9efca16 ("arm/Kconfig: Do not build TCG-only boards on a
>> KVM-only build")
>> Signed-off-by: Fabiano Rosas <farosas@suse.de>
>> ---
>> target/arm/Kconfig | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/target/arm/Kconfig b/target/arm/Kconfig
>> index 3fffdcb61b..5947366f6e 100644
>> --- a/target/arm/Kconfig
>> +++ b/target/arm/Kconfig
>> @@ -1,6 +1,7 @@
>> config ARM
>> bool
>> select ARM_COMPATIBLE_SEMIHOSTING if TCG
>> + select ARM_V7M if TCG
>
> Probably worth a comment mentioning this is temporarily
> required until <some magic happens>, so we won't forgot
> to remove it.
Yeah, this one should in principle be defined by the boards, but
m_helper.c is included unconditionally instead of having some kind of
stub for A-only boards.
Related to this is the (right now unconditional, later on only "if TCG")
"select ARM_GICV3_TCG" that needs to be added under ARM_GIC.
Paolo
next prev parent reply other threads:[~2023-05-09 15:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-08 18:16 [PATCH v3 0/3] target/arm: disable-tcg and without-default-devices fixes Fabiano Rosas
2023-05-08 18:16 ` [PATCH v3 1/3] target/arm: Select SEMIHOSTING when using TCG Fabiano Rosas
2023-05-09 14:40 ` Richard Henderson
2023-05-08 18:16 ` [PATCH v3 2/3] target/arm: Select CONFIG_ARM_V7M when TCG is enabled Fabiano Rosas
2023-05-09 14:40 ` Richard Henderson
2023-05-09 14:49 ` Philippe Mathieu-Daudé
2023-05-09 15:24 ` Paolo Bonzini [this message]
2023-05-08 18:16 ` [PATCH v3 3/3] tests/qtest: Don't run cdrom boot tests if no accelerator is present Fabiano Rosas
2023-05-09 6:51 ` Thomas Huth
2023-05-12 14:49 ` [PATCH v3 0/3] target/arm: disable-tcg and without-default-devices fixes Peter Maydell
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=40863bd4-1aad-2428-7976-f31e6b7b893f@redhat.com \
--to=pbonzini@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=farosas@suse.de \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=thuth@redhat.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).