mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 12:09:58 +00:00
usb-uhci: fix commit 8e65b7c049
for vmstate
The commit 8e65b7c049
introduced
expire_time of UHCIState. But expire_time is not in vmstate, the
second uhci_frame_timer will not be fired immediately after loadvm.
Signed-off-by: TeLeMan <geleman@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
c1ff227b91
commit
6881dd5f19
@ -375,7 +375,7 @@ static const VMStateDescription vmstate_uhci_port = {
|
|||||||
|
|
||||||
static const VMStateDescription vmstate_uhci = {
|
static const VMStateDescription vmstate_uhci = {
|
||||||
.name = "uhci",
|
.name = "uhci",
|
||||||
.version_id = 1,
|
.version_id = 2,
|
||||||
.minimum_version_id = 1,
|
.minimum_version_id = 1,
|
||||||
.minimum_version_id_old = 1,
|
.minimum_version_id_old = 1,
|
||||||
.pre_save = uhci_pre_save,
|
.pre_save = uhci_pre_save,
|
||||||
@ -392,6 +392,7 @@ static const VMStateDescription vmstate_uhci = {
|
|||||||
VMSTATE_UINT8(sof_timing, UHCIState),
|
VMSTATE_UINT8(sof_timing, UHCIState),
|
||||||
VMSTATE_UINT8(status2, UHCIState),
|
VMSTATE_UINT8(status2, UHCIState),
|
||||||
VMSTATE_TIMER(frame_timer, UHCIState),
|
VMSTATE_TIMER(frame_timer, UHCIState),
|
||||||
|
VMSTATE_INT64_V(expire_time, UHCIState, 2),
|
||||||
VMSTATE_END_OF_LIST()
|
VMSTATE_END_OF_LIST()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user