summaryrefslogtreecommitdiffstats
path: root/hw/intc
diff options
context:
space:
mode:
authorAndreas Färber2013-08-19 00:48:55 +0200
committerAndreas Färber2013-11-05 17:47:30 +0100
commitce31825de64c305cbf0def5657edac21aab7368b (patch)
tree4c7d5bff1c2876039a26a6e43f285f8c10c303e4 /hw/intc
parentrealview_gic: Convert to QOM realize (diff)
downloadqemu-ce31825de64c305cbf0def5657edac21aab7368b.tar.gz
qemu-ce31825de64c305cbf0def5657edac21aab7368b.tar.xz
qemu-ce31825de64c305cbf0def5657edac21aab7368b.zip
realview_gic: Prepare for QOM embedding
Move state struct, type constant and cast macro to a new header. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/intc')
-rw-r--r--hw/intc/realview_gic.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/hw/intc/realview_gic.c b/hw/intc/realview_gic.c
index 4ff48bbab1..6c812961cc 100644
--- a/hw/intc/realview_gic.c
+++ b/hw/intc/realview_gic.c
@@ -7,20 +7,7 @@
* This code is licensed under the GPL.
*/
-#include "hw/sysbus.h"
-#include "hw/intc/arm_gic.h"
-
-#define TYPE_REALVIEW_GIC "realview_gic"
-#define REALVIEW_GIC(obj) \
- OBJECT_CHECK(RealViewGICState, (obj), TYPE_REALVIEW_GIC)
-
-typedef struct RealViewGICState {
- SysBusDevice parent_obj;
-
- MemoryRegion container;
-
- GICState gic;
-} RealViewGICState;
+#include "hw/intc/realview_gic.h"
static void realview_gic_set_irq(void *opaque, int irq, int level)
{