mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
arm_gic: Rename gic_state to GICState
Rename the gic_state struct to match QEMU's coding style conventions for structure names, since the impending KVM-for-ARM patches will create another subclass of it. This patch was created using: sed -i 's/gic_state/GICState/g' hw/arm_gic.c hw/arm_gic_common.c \ hw/arm_gic_internal.h hw/armv7m_nvic.c Acked-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
fa2ddcb4f5
commit
fae1528675
4 changed files with 43 additions and 43 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
static void gic_save(QEMUFile *f, void *opaque)
|
||||
{
|
||||
gic_state *s = (gic_state *)opaque;
|
||||
GICState *s = (GICState *)opaque;
|
||||
int i;
|
||||
int j;
|
||||
|
||||
|
@ -56,7 +56,7 @@ static void gic_save(QEMUFile *f, void *opaque)
|
|||
|
||||
static int gic_load(QEMUFile *f, void *opaque, int version_id)
|
||||
{
|
||||
gic_state *s = (gic_state *)opaque;
|
||||
GICState *s = (GICState *)opaque;
|
||||
int i;
|
||||
int j;
|
||||
|
||||
|
@ -96,7 +96,7 @@ static int gic_load(QEMUFile *f, void *opaque, int version_id)
|
|||
|
||||
static int arm_gic_common_init(SysBusDevice *dev)
|
||||
{
|
||||
gic_state *s = FROM_SYSBUS(gic_state, dev);
|
||||
GICState *s = FROM_SYSBUS(GICState, dev);
|
||||
int num_irq = s->num_irq;
|
||||
|
||||
if (s->num_cpu > NCPU) {
|
||||
|
@ -123,7 +123,7 @@ static int arm_gic_common_init(SysBusDevice *dev)
|
|||
|
||||
static void arm_gic_common_reset(DeviceState *dev)
|
||||
{
|
||||
gic_state *s = FROM_SYSBUS(gic_state, sysbus_from_qdev(dev));
|
||||
GICState *s = FROM_SYSBUS(GICState, sysbus_from_qdev(dev));
|
||||
int i;
|
||||
memset(s->irq_state, 0, GIC_MAXIRQ * sizeof(gic_irq_state));
|
||||
for (i = 0 ; i < s->num_cpu; i++) {
|
||||
|
@ -147,13 +147,13 @@ static void arm_gic_common_reset(DeviceState *dev)
|
|||
}
|
||||
|
||||
static Property arm_gic_common_properties[] = {
|
||||
DEFINE_PROP_UINT32("num-cpu", gic_state, num_cpu, 1),
|
||||
DEFINE_PROP_UINT32("num-irq", gic_state, num_irq, 32),
|
||||
DEFINE_PROP_UINT32("num-cpu", GICState, num_cpu, 1),
|
||||
DEFINE_PROP_UINT32("num-irq", GICState, num_irq, 32),
|
||||
/* Revision can be 1 or 2 for GIC architecture specification
|
||||
* versions 1 or 2, or 0 to indicate the legacy 11MPCore GIC.
|
||||
* (Internally, 0xffffffff also indicates "not a GIC but an NVIC".)
|
||||
*/
|
||||
DEFINE_PROP_UINT32("revision", gic_state, revision, 1),
|
||||
DEFINE_PROP_UINT32("revision", GICState, revision, 1),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
|
@ -170,7 +170,7 @@ static void arm_gic_common_class_init(ObjectClass *klass, void *data)
|
|||
static TypeInfo arm_gic_common_type = {
|
||||
.name = TYPE_ARM_GIC_COMMON,
|
||||
.parent = TYPE_SYS_BUS_DEVICE,
|
||||
.instance_size = sizeof(gic_state),
|
||||
.instance_size = sizeof(GICState),
|
||||
.class_size = sizeof(ARMGICCommonClass),
|
||||
.class_init = arm_gic_common_class_init,
|
||||
.abstract = true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue