summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLeon Alrae2016-03-15 10:59:29 +0100
committerLeon Alrae2016-03-30 10:13:59 +0200
commita9bd9b5a8682c8129b46ae0e673efdad35f493c2 (patch)
treeb3fac509c0219513c0761958708f938ce5504113 /include
parenthw/mips: add initial Global Config Register support (diff)
downloadqemu-a9bd9b5a8682c8129b46ae0e673efdad35f493c2.tar.gz
qemu-a9bd9b5a8682c8129b46ae0e673efdad35f493c2.tar.xz
qemu-a9bd9b5a8682c8129b46ae0e673efdad35f493c2.zip
hw/mips/cps: create GCR block inside CPS
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/mips/cps.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/mips/cps.h b/include/hw/mips/cps.h
index fb3528a83e..1b200d6ac1 100644
--- a/include/hw/mips/cps.h
+++ b/include/hw/mips/cps.h
@@ -21,6 +21,7 @@
#define MIPS_CPS_H
#include "hw/sysbus.h"
+#include "hw/misc/mips_cmgcr.h"
#define TYPE_MIPS_CPS "mips-cps"
#define MIPS_CPS(obj) OBJECT_CHECK(MIPSCPSState, (obj), TYPE_MIPS_CPS)
@@ -33,6 +34,7 @@ typedef struct MIPSCPSState {
char *cpu_model;
MemoryRegion container;
+ MIPSGCRState gcr;
} MIPSCPSState;
qemu_irq get_cps_irq(MIPSCPSState *cps, int pin_number);