mirror of https://github.com/xemu-project/xemu.git
hw/mips/malta: Use clearer qdev style
In order to be consistent with the other code base uses, rewrite slightly how the MIPS_MALTA object is created. No logical change. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20201012160503.3472140-3-f4bug@amsat.org>
This commit is contained in:
parent
c5cdf75613
commit
8df525a558
|
@ -1235,11 +1235,11 @@ void mips_malta_init(MachineState *machine)
|
||||||
DriveInfo *dinfo;
|
DriveInfo *dinfo;
|
||||||
int fl_idx = 0;
|
int fl_idx = 0;
|
||||||
int be;
|
int be;
|
||||||
|
MaltaState *s;
|
||||||
|
DeviceState *dev;
|
||||||
|
|
||||||
DeviceState *dev = qdev_new(TYPE_MIPS_MALTA);
|
s = MIPS_MALTA(qdev_new(TYPE_MIPS_MALTA));
|
||||||
MaltaState *s = MIPS_MALTA(dev);
|
sysbus_realize_and_unref(SYS_BUS_DEVICE(s), &error_fatal);
|
||||||
|
|
||||||
sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
|
|
||||||
|
|
||||||
/* create CPU */
|
/* create CPU */
|
||||||
mips_create_cpu(machine, s, &cbus_irq, &i8259_irq);
|
mips_create_cpu(machine, s, &cbus_irq, &i8259_irq);
|
||||||
|
|
Loading…
Reference in New Issue