mirror of https://gitee.com/openkylin/qemu.git
lance: unbreak after memory API conversion
The conversion passed the wrong opaque pointer, causing a crash on first use. Pass the correct opaque. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
986563b173
commit
032a7c4e42
|
@ -116,7 +116,7 @@ static int lance_init(SysBusDevice *dev)
|
|||
SysBusPCNetState *d = FROM_SYSBUS(SysBusPCNetState, dev);
|
||||
PCNetState *s = &d->state;
|
||||
|
||||
memory_region_init_io(&s->mmio, &lance_mem_ops, s, "lance-mmio", 4);
|
||||
memory_region_init_io(&s->mmio, &lance_mem_ops, d, "lance-mmio", 4);
|
||||
|
||||
qdev_init_gpio_in(&dev->qdev, parent_lance_reset, 1);
|
||||
|
||||
|
|
Loading…
Reference in New Issue