mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
hw/lm32/milkymist: Un-inline milkymist_memcard_create()
As we will modify milkymist_memcard_create(), move it first to the source file where it is used. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20200705211016.15241-2-f4bug@amsat.org>
This commit is contained in:
parent
a0e63983a6
commit
3dce584241
2 changed files with 11 additions and 11 deletions
|
@ -31,17 +31,6 @@ static inline DeviceState *milkymist_hpdmc_create(hwaddr base)
|
|||
return dev;
|
||||
}
|
||||
|
||||
static inline DeviceState *milkymist_memcard_create(hwaddr base)
|
||||
{
|
||||
DeviceState *dev;
|
||||
|
||||
dev = qdev_new("milkymist-memcard");
|
||||
sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
|
||||
sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, base);
|
||||
|
||||
return dev;
|
||||
}
|
||||
|
||||
static inline DeviceState *milkymist_vgafb_create(hwaddr base,
|
||||
uint32_t fb_offset, uint32_t fb_mask)
|
||||
{
|
||||
|
|
|
@ -80,6 +80,17 @@ static void main_cpu_reset(void *opaque)
|
|||
env->deba = reset_info->flash_base;
|
||||
}
|
||||
|
||||
static DeviceState *milkymist_memcard_create(hwaddr base)
|
||||
{
|
||||
DeviceState *dev;
|
||||
|
||||
dev = qdev_new("milkymist-memcard");
|
||||
sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
|
||||
sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, base);
|
||||
|
||||
return dev;
|
||||
}
|
||||
|
||||
static void
|
||||
milkymist_init(MachineState *machine)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue