From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Thomas Huth <thuth@redhat.com>,
qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-arm@nongnu.org, qemu-riscv@nongnu.org,
Daniel Henrique Barboza <dbarboza@ventanamicro.com>,
Liu Zhiwei <zhiwei_liu@linux.alibaba.com>,
Alistair Francis <alistair.francis@wdc.com>,
Bin Meng <bin.meng@windriver.com>,
Weiwei Li <liwei1518@gmail.com>,
Palmer Dabbelt <palmer@dabbelt.com>
Subject: Re: [PATCH 1/2] hw: Fix problem with the A*MPCORE switches in the Kconfig files
Date: Sat, 13 Apr 2024 11:48:50 +0200 [thread overview]
Message-ID: <fad7296f-1870-4b87-9b05-e367c7422d14@linaro.org> (raw)
In-Reply-To: <f75a5002-8292-4383-9d62-ebd8f3587c20@redhat.com>
On 12/4/24 13:32, Thomas Huth wrote:
> On 12/04/2024 13.10, Philippe Mathieu-Daudé wrote:
>> On 12/4/24 08:20, Thomas Huth wrote:
>>> A9MPCORE, ARM11MPCORE and A15MPCORE are defined twice, once in
>>> hw/cpu/Kconfig and once in hw/arm/Kconfig. This is only possible
>>> by accident, since hw/cpu/Kconfig is never included from hw/Kconfig.
>>> Fix it by declaring the switches only in hw/cpu/Kconfig (since the
>>> related files reside in the hw/cpu/ folder) and by making sure that
>>> the file hw/cpu/Kconfig is now properly included from hw/Kconfig.
>>>
>>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>>> ---
>>> hw/Kconfig | 1 +
>>> hw/arm/Kconfig | 15 ---------------
>>> hw/cpu/Kconfig | 12 +++++++++---
>>> 3 files changed, 10 insertions(+), 18 deletions(-)
>>>
>>> diff --git a/hw/Kconfig b/hw/Kconfig
>>> index 2c00936c28..9567cc475d 100644
>>> --- a/hw/Kconfig
>>> +++ b/hw/Kconfig
>>> @@ -48,6 +48,7 @@ source watchdog/Kconfig
>>> # arch Kconfig
>>> source arm/Kconfig
>>> +source cpu/Kconfig
>>> source alpha/Kconfig
>>> source avr/Kconfig
>>> source cris/Kconfig
>>> diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig
>>> index 893a7bff66..d97015c45c 100644
>>> --- a/hw/arm/Kconfig
>>> +++ b/hw/arm/Kconfig
>>> @@ -678,21 +678,6 @@ config ZAURUS
>>> select NAND
>>> select ECC
>>> -config A9MPCORE
>>> - bool
>>> - select A9_GTIMER
>>> - select A9SCU # snoop control unit
>>> - select ARM_GIC
>>> - select ARM_MPTIMER
>>> -
>>> -config A15MPCORE
>>> - bool
>>> - select ARM_GIC
>>> -
>>> -config ARM11MPCORE
>>> - bool
>>> - select ARM11SCU
>>> -
>>> config ARMSSE
>>> bool
>>> select ARM_V7M
>>> diff --git a/hw/cpu/Kconfig b/hw/cpu/Kconfig
>>> index 1767d028ac..f776e884cd 100644
>>> --- a/hw/cpu/Kconfig
>>> +++ b/hw/cpu/Kconfig
>>> @@ -1,8 +1,14 @@
>>> -config ARM11MPCORE
>>> - bool
>>> -
>>> config A9MPCORE
>>> bool
>>> + select A9_GTIMER
>>> + select A9SCU # snoop control unit
>>> + select ARM_GIC
>>> + select ARM_MPTIMER
>>> config A15MPCORE
>>> bool
>>> + select ARM_GIC
>>> +
>>> +config ARM11MPCORE
>>> + bool
>>> + select ARM11SCU
>>
>> I thought
>> https://lore.kernel.org/qemu-devel/20231212162935.42910-6-philmd@linaro.org/
>> was already merged :/ I'll look at what is missing and respin.
>
> Oh, ok. But I'd prefer to keep the hw/cpu/Kconfig file since it will be
> used in the 2nd patch here, too.
Fine,
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
next prev parent reply other threads:[~2024-04-13 9:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-12 6:20 [PATCH 0/2] Improvements for switches in hw/cpu/Kconfig Thomas Huth
2024-04-12 6:20 ` [PATCH 1/2] hw: Fix problem with the A*MPCORE switches in the Kconfig files Thomas Huth
2024-04-12 11:10 ` Philippe Mathieu-Daudé
2024-04-12 11:32 ` Thomas Huth
2024-04-13 9:48 ` Philippe Mathieu-Daudé [this message]
2024-04-12 6:20 ` [PATCH 2/2] hw: Add a Kconfig switch for the TYPE_CPU_CLUSTER device Thomas Huth
2024-04-12 9:15 ` Thomas Huth
2024-04-13 9:50 ` Philippe Mathieu-Daudé
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=fad7296f-1870-4b87-9b05-e367c7422d14@linaro.org \
--to=philmd@linaro.org \
--cc=alistair.francis@wdc.com \
--cc=bin.meng@windriver.com \
--cc=dbarboza@ventanamicro.com \
--cc=liwei1518@gmail.com \
--cc=palmer@dabbelt.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=thuth@redhat.com \
--cc=zhiwei_liu@linux.alibaba.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).