From: Peter Maydell <peter.maydell@linaro.org>
To: Peter Delevoryas <pdel@fb.com>
Cc: clg@kaod.org, andrew@aj.id.au, joel@jms.id.au,
pbonzini@redhat.com, berrange@redhat.com, eduardo@habkost.net,
marcel.apfelbaum@gmail.com, richard.henderson@linaro.org,
f4bug@amsat.org, ani@anisinha.ca, qemu-devel@nongnu.org,
qemu-arm@nongnu.org, kvm@vger.kernel.org
Subject: Re: [PATCH 11/14] aspeed: Switch to create_unimplemented_device_in
Date: Thu, 23 Jun 2022 13:56:14 +0100 [thread overview]
Message-ID: <CAFEAcA_iOeL50nGaTSNRa23P0GKH8_0fpiSOxktAOA22CGgZvA@mail.gmail.com> (raw)
In-Reply-To: <20220623095825.2038562-12-pdel@fb.com>
On Thu, 23 Jun 2022 at 13:04, Peter Delevoryas <pdel@fb.com> wrote:
>
> Signed-off-by: Peter Delevoryas <pdel@fb.com>
> ---
> hw/arm/aspeed_ast10x0.c | 10 ++++------
> hw/arm/aspeed_ast2600.c | 19 ++++++++++---------
> hw/arm/aspeed_soc.c | 9 +++++----
> 3 files changed, 19 insertions(+), 19 deletions(-)
>
> diff --git a/hw/arm/aspeed_ast10x0.c b/hw/arm/aspeed_ast10x0.c
> index d259d30fc0..4e6688cc68 100644
> --- a/hw/arm/aspeed_ast10x0.c
> +++ b/hw/arm/aspeed_ast10x0.c
> @@ -158,12 +158,10 @@ static void aspeed_soc_ast1030_realize(DeviceState *dev_soc, Error **errp)
> }
>
> /* General I/O memory space to catch all unimplemented device */
> - create_unimplemented_device("aspeed.sbc",
> - sc->memmap[ASPEED_DEV_SBC],
> - 0x40000);
> - create_unimplemented_device("aspeed.io",
> - sc->memmap[ASPEED_DEV_IOMEM],
> - ASPEED_SOC_IOMEM_SIZE);
> + create_unimplemented_device_in("aspeed.sbc", sc->memmap[ASPEED_DEV_SBC],
> + 0x40000, s->system_memory);
> + create_unimplemented_device_in("aspeed.io", sc->memmap[ASPEED_DEV_IOMEM],
> + ASPEED_SOC_IOMEM_SIZE, s->system_memory);
This is SoC code, so it should probably be handling its unimplemented
devices by creating and mapping TYPE_UNIMPLEMENTED_DEVICE child
objects directly, the same way it handles all its other child devices.
thanks
-- PMM
next prev parent reply other threads:[~2022-06-23 12:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20220623095825.2038562-1-pdel@fb.com>
[not found] ` <20220623095825.2038562-7-pdel@fb.com>
2022-06-23 12:30 ` [PATCH 06/14] aspeed: Add system-memory QOM link to SoC Peter Maydell
2022-06-23 18:30 ` Peter Delevoryas
[not found] ` <20220623095825.2038562-12-pdel@fb.com>
2022-06-23 12:56 ` Peter Maydell [this message]
2022-06-23 18:32 ` [PATCH 11/14] aspeed: Switch to create_unimplemented_device_in Peter Delevoryas
[not found] ` <20220623095825.2038562-2-pdel@fb.com>
2022-06-23 12:09 ` [PATCH 01/14] sysbus: Remove sysbus_mmio_unmap Peter Maydell
2022-06-23 15:09 ` Cédric Le Goater
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=CAFEAcA_iOeL50nGaTSNRa23P0GKH8_0fpiSOxktAOA22CGgZvA@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=andrew@aj.id.au \
--cc=ani@anisinha.ca \
--cc=berrange@redhat.com \
--cc=clg@kaod.org \
--cc=eduardo@habkost.net \
--cc=f4bug@amsat.org \
--cc=joel@jms.id.au \
--cc=kvm@vger.kernel.org \
--cc=marcel.apfelbaum@gmail.com \
--cc=pbonzini@redhat.com \
--cc=pdel@fb.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/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).