From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Bernhard Beschow <shentey@gmail.com>, qemu-devel@nongnu.org
Cc: "Eduardo Habkost" <eduardo@habkost.net>,
"Thomas Huth" <thuth@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Hervé Poussineau" <hpoussin@reactos.org>,
"Marcel Apfelbaum" <marcel.apfelbaum@gmail.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Aurelien Jarno" <aurelien@aurel32.net>
Subject: Re: [PATCH 3/4] hw/isa/piix: Unify QOM type name of PIIX ISA function
Date: Tue, 28 Feb 2023 23:33:27 +0100 [thread overview]
Message-ID: <f4adf0fe-1af7-a841-ddd6-38d786f96c61@linaro.org> (raw)
In-Reply-To: <30EE17DE-67F6-4D3C-BA82-EA3A1D256E95@gmail.com>
On 28/2/23 22:55, Bernhard Beschow wrote:
>
>
> Am 10. Februar 2023 16:57:53 UTC schrieb "Philippe Mathieu-Daudé" <philmd@linaro.org>:
>> Mechanical change doing:
>>
>> $ sed -i -e 's/PIIX4_PCI_DEVICE/PIIX4_ISA/g' $(git grep -l PIIX4_PCI_DEVICE)
>> $ sed -i -e 's/PIIX3_XEN_DEVICE/PIIX3_ISA_XEN/g' $(git grep -l PIIX3_XEN_DEVICE)
>> $ sed -i -e 's/PIIX3_DEVICE/PIIX3_ISA/g' $(git grep -l PIIX3_DEVICE)
>> $ sed -i -e 's/PIIX3_PCI_DEVICE/PIIX_ISA/g' $(git grep -l PIIX3_PCI_DEVICE)
>>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> ---
>> hw/i386/pc_piix.c | 5 ++---
>> hw/isa/piix3.c | 20 ++++++++++----------
>> hw/isa/piix4.c | 10 +++++-----
>> hw/mips/malta.c | 2 +-
>> include/hw/southbridge/piix.h | 10 +++++-----
>> 5 files changed, 23 insertions(+), 24 deletions(-)
>> -OBJECT_DECLARE_SIMPLE_TYPE(PIIX4State, PIIX4_PCI_DEVICE)
>> +OBJECT_DECLARE_SIMPLE_TYPE(PIIX4State, PIIX4_ISA)
>>
>> static void piix4_set_irq(void *opaque, int irq_num, int level)
>> {
>> @@ -81,7 +81,7 @@ static void piix4_set_irq(void *opaque, int irq_num, int level)
>>
>> static void piix4_isa_reset(DeviceState *dev)
>> {
>> - PIIX4State *d = PIIX4_PCI_DEVICE(dev);
>> + PIIX4State *d = PIIX4_ISA(dev);
>
> PIIX4State holds the state of the whole south bridge and not just the ISA function. I therefore tend to find PIIX4_ISA() slightly misleading...
Not in the respin of your work: PIIX_ISA is simply the PCI-ISA bridge
function #0, part of a new QOM PIIX chipset. One rationale is the
address spaces are not part of the ISA function, but intrinsic part
of the while chipset, shared between some PCI functions. Another is
some functions don't depend on the ISA bridge to be usable.
next prev parent reply other threads:[~2023-02-28 22:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-10 16:57 [PATCH 0/4] hw/isa/piix: Housekeeping QOM names / macros Philippe Mathieu-Daudé
2023-02-10 16:57 ` [PATCH 1/4] hw/southbridge/piix: Use OBJECT_DECLARE_SIMPLE_TYPE() macro Philippe Mathieu-Daudé
2023-02-28 21:35 ` Bernhard Beschow
2023-02-28 22:28 ` Philippe Mathieu-Daudé
2023-02-10 16:57 ` [PATCH 2/4] hw/isa/piix: Batch register QOM types using DEFINE_TYPES() macro Philippe Mathieu-Daudé
2023-02-10 16:57 ` [PATCH 3/4] hw/isa/piix: Unify QOM type name of PIIX ISA function Philippe Mathieu-Daudé
2023-02-28 21:55 ` Bernhard Beschow
2023-02-28 22:33 ` Philippe Mathieu-Daudé [this message]
2023-02-10 16:57 ` [PATCH 4/4] hw/isa/piix: Unify PIIX-ISA QOM type names using qdev aliases Philippe Mathieu-Daudé
2023-02-28 13:35 ` [PATCH 0/4] hw/isa/piix: Housekeeping QOM names / macros 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=f4adf0fe-1af7-a841-ddd6-38d786f96c61@linaro.org \
--to=philmd@linaro.org \
--cc=aurelien@aurel32.net \
--cc=eduardo@habkost.net \
--cc=hpoussin@reactos.org \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=shentey@gmail.com \
--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).