qemu_get_timer: the 64 bit value needs to be read from the save file
even when the timer is not initialized otherwise following reads from
the savefile will read the wrong fields.
[ This fixes a regression in
68af5b51 -iwj. ]
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
{
uint64_t expire_time;
+ expire_time = qemu_get_be64(f);
+
if (ts == NULL)
return;
-
- expire_time = qemu_get_be64(f);
if (expire_time != -1) {
qemu_mod_timer(ts, expire_time);
} else {