projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78f0c9a
)
i8254: Fix migration from older versions
author
Jan Kiszka
<jan.kiszka@siemens.com>
Sun, 6 Mar 2011 15:09:49 +0000
(16:09 +0100)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sat, 19 Mar 2011 08:29:04 +0000
(08:29 +0000)
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>
hw/i8254.c
patch
|
blob
|
history
diff --git
a/hw/i8254.c
b/hw/i8254.c
index eaf5d3e17475247824e365c348d17e8c6e7e618d..47c9d7382e9ac93714369eea3ef4a92f8a80c24a 100644
(file)
--- a/
hw/i8254.c
+++ b/
hw/i8254.c
@@
-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;
}