Commit 8e5977e5 authored by Aurelien Jarno's avatar Aurelien Jarno
Browse files

gt64xxx: set isa_mem_base during registration



isa_mem_base is computed from registers during reset, but due to QEMU
limitations some devices (e.g. VGA card) need to know it earlier when
they are registered.

Workaround this by setting the value during registration instead of
reset.

Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent 730986e4
......@@ -1125,6 +1125,11 @@ static int gt64120_init(SysBusDevice *dev)
s = FROM_SYSBUS(GT64120State, dev);
/* FIXME: This value is computed from registers during reset, but some
devices (e.g. VGA card) need to know it when they are registered.
This also mean that changing the register to change the mapping
does not fully work. */
isa_mem_base = 0x10000000;
qemu_register_reset(gt64120_reset, s);
register_savevm(&dev->qdev, "GT64120 PCI Bus", 0, 1,
gt64120_save, gt64120_load, &s->pci);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment