diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-10-12 17:35:50 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-10-17 13:59:40 +0200 |
commit | c5cdf7561311a2dd37eb7af636247440182e6e0b (patch) | |
tree | 0b6fbdc7fd18de33ae178e3819a8b00e14ee04fa /hw | |
parent | 9a2133f45c287e99ef23896a7a33b3d2dbfe97fd (diff) | |
download | qemu-c5cdf7561311a2dd37eb7af636247440182e6e0b.zip qemu-c5cdf7561311a2dd37eb7af636247440182e6e0b.tar.gz qemu-c5cdf7561311a2dd37eb7af636247440182e6e0b.tar.bz2 |
hw/mips/malta: Move gt64120 related code together
The 'empty_slot' region created is related to the gt64120.
Move its creation close to the gt64120 instance creation.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20201012160503.3472140-2-f4bug@amsat.org>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/mips/malta.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/hw/mips/malta.c b/hw/mips/malta.c index a4a4c38..944045d 100644 --- a/hw/mips/malta.c +++ b/hw/mips/malta.c @@ -1239,13 +1239,6 @@ void mips_malta_init(MachineState *machine) DeviceState *dev = qdev_new(TYPE_MIPS_MALTA); MaltaState *s = MIPS_MALTA(dev); - /* - * The whole address space decoded by the GT-64120A doesn't generate - * exception when accessing invalid memory. Create an empty slot to - * emulate this feature. - */ - empty_slot_init("GT64120", 0, 0x20000000); - sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal); /* create CPU */ @@ -1399,6 +1392,12 @@ void mips_malta_init(MachineState *machine) /* Northbridge */ pci_bus = gt64120_register(s->i8259); + /* + * The whole address space decoded by the GT-64120A doesn't generate + * exception when accessing invalid memory. Create an empty slot to + * emulate this feature. + */ + empty_slot_init("GT64120", 0, 0x20000000); /* Southbridge */ dev = piix4_create(pci_bus, &isa_bus, &smbus); |