mirror of https://github.com/xqemu/xqemu.git
i8254: Fix migration from older versions
qdev conversion broke migration as the previous version used vmstate instance IDs derived from the iobase. Fix it by registering a legacy alias. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
00914b7d97
commit
ca22a3a375
|
@ -520,6 +520,8 @@ static int pit_initfn(ISADevice *dev)
|
|||
register_ioport_read(pit->iobase, 3, 1, pit_ioport_read, pit);
|
||||
isa_init_ioport(dev, pit->iobase);
|
||||
|
||||
qdev_set_legacy_instance_id(&dev->qdev, pit->iobase, 2);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue