From: "Cédric Le Goater" <clg@kaod.org>
To: qemu-ppc@nongnu.org
Cc: "David Gibson" <david@gibson.dropbear.id.au>,
qemu-devel@nongnu.org, "Alexander Graf" <agraf@suse.de>,
"Cédric Le Goater" <clg@kaod.org>
Subject: [Qemu-devel] [PATCH 2/3] ppc/xics: add a XICSState backlink in ICPState
Date: Tue, 18 Oct 2016 10:06:33 +0200 [thread overview]
Message-ID: <1476777994-28711-3-git-send-email-clg@kaod.org> (raw)
In-Reply-To: <1476777994-28711-1-git-send-email-clg@kaod.org>
The link will be used to change the API of the icp_* routines which
are still using an XICSState as an argument.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
hw/intc/xics.c | 1 +
include/hw/ppc/xics.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/hw/intc/xics.c b/hw/intc/xics.c
index c051eebb446b..9f2c81a7f140 100644
--- a/hw/intc/xics.c
+++ b/hw/intc/xics.c
@@ -198,6 +198,7 @@ void xics_set_nr_servers(XICSState *xics, uint32_t nr_servers,
object_initialize(icp, sizeof(*icp), typename);
snprintf(name, sizeof(name), "icp[%d]", i);
object_property_add_child(OBJECT(xics), name, OBJECT(icp), errp);
+ icp->xics = xics;
}
}
diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h
index 573b1920536b..1468d6a89088 100644
--- a/include/hw/ppc/xics.h
+++ b/include/hw/ppc/xics.h
@@ -117,6 +117,8 @@ struct ICPState {
uint8_t mfrr;
qemu_irq output;
bool cap_irq_xics_enabled;
+
+ XICSState *xics;
};
#define TYPE_ICS_BASE "ics-base"
--
2.7.4
next prev parent reply other threads:[~2016-10-18 8:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-18 8:06 [Qemu-devel] [PATCH 0/3] ppc/xics: interface cleanups Cédric Le Goater
2016-10-18 8:06 ` [Qemu-devel] [PATCH 1/3] ppc/xics: add a xics_set_nr_servers common routine Cédric Le Goater
2016-10-18 8:06 ` Cédric Le Goater [this message]
2016-10-18 8:06 ` [Qemu-devel] [PATCH 3/3] ppc/xics: change the icp_ routines API to use an 'ICPState *' argument Cédric Le Goater
2016-10-21 1:07 ` [Qemu-devel] [PATCH 0/3] ppc/xics: interface cleanups David Gibson
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=1476777994-28711-3-git-send-email-clg@kaod.org \
--to=clg@kaod.org \
--cc=agraf@suse.de \
--cc=david@gibson.dropbear.id.au \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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).