summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGreg Kurz2017-06-08 15:42:41 +0200
committerDavid Gibson2017-06-09 04:12:34 +0200
commitad265631c0a0addc06ec3c4f133e746f4dcc872a (patch)
tree9fdf4cf7b3005fa6311613c536d2a1a5a70dca80 /include
parenthw/cpu: core.c can be compiled as common object (diff)
downloadqemu-ad265631c0a0addc06ec3c4f133e746f4dcc872a.tar.gz
qemu-ad265631c0a0addc06ec3c4f133e746f4dcc872a.tar.xz
qemu-ad265631c0a0addc06ec3c4f133e746f4dcc872a.zip
xics: introduce macros for ICP/ICS link properties
These properties are part of the XICS API. They deserve to appear explicitely in the XICS header file. Signed-off-by: Greg Kurz <groug@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
-rw-r--r--include/hw/ppc/xics.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h
index 40a506eacf..31145326eb 100644
--- a/include/hw/ppc/xics.h
+++ b/include/hw/ppc/xics.h
@@ -86,6 +86,8 @@ struct ICPState {
XICSFabric *xics;
};
+#define ICP_PROP_XICS "xics"
+
struct PnvICPState {
ICPState parent_obj;
@@ -130,6 +132,8 @@ struct ICSState {
XICSFabric *xics;
};
+#define ICS_PROP_XICS "xics"
+
static inline bool ics_valid_irq(ICSState *ics, uint32_t nr)
{
return (ics->offset != 0) && (nr >= ics->offset)