From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-arm@nongnu.org, qemu-devel@nongnu.org
Subject: [PATCH for-8.0 5/9] hw/intc: Convert TYPE_ARM_GICV3_COMMON to 3-phase reset
Date: Wed, 9 Nov 2022 16:14:40 +0000 [thread overview]
Message-ID: <20221109161444.3397405-6-peter.maydell@linaro.org> (raw)
In-Reply-To: <20221109161444.3397405-1-peter.maydell@linaro.org>
Convert the TYPE_ARM_GICV3_COMMON parent class to 3-phase reset.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
hw/intc/arm_gicv3_common.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/hw/intc/arm_gicv3_common.c b/hw/intc/arm_gicv3_common.c
index 351843db4aa..642a8243ed4 100644
--- a/hw/intc/arm_gicv3_common.c
+++ b/hw/intc/arm_gicv3_common.c
@@ -450,9 +450,9 @@ static void arm_gicv3_finalize(Object *obj)
g_free(s->redist_region_count);
}
-static void arm_gicv3_common_reset(DeviceState *dev)
+static void arm_gicv3_common_reset_hold(Object *obj)
{
- GICv3State *s = ARM_GICV3_COMMON(dev);
+ GICv3State *s = ARM_GICV3_COMMON(obj);
int i;
for (i = 0; i < s->num_cpu; i++) {
@@ -578,9 +578,10 @@ static Property arm_gicv3_common_properties[] = {
static void arm_gicv3_common_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
+ ResettableClass *rc = RESETTABLE_CLASS(klass);
ARMLinuxBootIfClass *albifc = ARM_LINUX_BOOT_IF_CLASS(klass);
- dc->reset = arm_gicv3_common_reset;
+ rc->phases.hold = arm_gicv3_common_reset_hold;
dc->realize = arm_gicv3_common_realize;
device_class_set_props(dc, arm_gicv3_common_properties);
dc->vmsd = &vmstate_gicv3;
--
2.25.1
next prev parent reply other threads:[~2022-11-09 16:15 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-09 16:14 [PATCH for-8.0 0/9] arm: Convert Arm GIC, ITS, SMMU devices to 3-phase reset Peter Maydell
2022-11-09 16:14 ` [PATCH for-8.0 1/9] hw/arm: Convert TYPE_ARM_SMMU " Peter Maydell
2022-11-09 22:37 ` Philippe Mathieu-Daudé
2022-11-10 5:40 ` Richard Henderson
2022-11-28 18:20 ` Eric Auger
2022-11-09 16:14 ` [PATCH for-8.0 2/9] hw/arm: Convert TYPE_ARM_SMMUV3 " Peter Maydell
2022-11-10 5:41 ` Richard Henderson
2022-11-28 18:19 ` Eric Auger
2022-11-30 10:28 ` Philippe Mathieu-Daudé
2022-11-09 16:14 ` [PATCH for-8.0 3/9] hw/intc: Convert TYPE_ARM_GIC_COMMON " Peter Maydell
2022-11-09 22:37 ` Philippe Mathieu-Daudé
2022-11-10 5:41 ` Richard Henderson
2022-11-09 16:14 ` [PATCH for-8.0 4/9] hw/intc: Convert TYPE_ARM_GIC_KVM " Peter Maydell
2022-11-10 5:42 ` Richard Henderson
2022-11-30 10:29 ` Philippe Mathieu-Daudé
2022-11-09 16:14 ` Peter Maydell [this message]
2022-11-10 5:42 ` [PATCH for-8.0 5/9] hw/intc: Convert TYPE_ARM_GICV3_COMMON " Richard Henderson
2022-11-30 10:30 ` Philippe Mathieu-Daudé
2022-11-09 16:14 ` [PATCH for-8.0 6/9] hw/intc: Convert TYPE_KVM_ARM_GICV3 " Peter Maydell
2022-11-10 5:43 ` Richard Henderson
2022-11-30 10:32 ` Philippe Mathieu-Daudé
2022-11-09 16:14 ` [PATCH for-8.0 7/9] hw/intc: Convert TYPE_ARM_GICV3_ITS_COMMON " Peter Maydell
2022-11-09 22:38 ` Philippe Mathieu-Daudé
2022-11-10 5:43 ` Richard Henderson
2022-11-09 16:14 ` [PATCH for-8.0 8/9] hw/intc: Convert TYPE_ARM_GICV3_ITS " Peter Maydell
2022-11-10 5:44 ` Richard Henderson
2022-11-30 10:33 ` Philippe Mathieu-Daudé
2022-11-09 16:14 ` [PATCH for-8.0 9/9] hw/intc: Convert TYPE_KVM_ARM_ITS " Peter Maydell
2022-11-10 5:44 ` Richard Henderson
2022-11-30 10:34 ` 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=20221109161444.3397405-6-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.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).