Revision bee8d684 vl.c
b/vl.c | ||
---|---|---|
1126 | 1126 |
if (cpu_ticks_enabled) { |
1127 | 1127 |
hw_error("cannot save state if virtual timers are running"); |
1128 | 1128 |
} |
1129 |
qemu_put_be64s(f, &cpu_ticks_offset);
|
|
1130 |
qemu_put_be64s(f, &ticks_per_sec);
|
|
1131 |
qemu_put_be64s(f, &cpu_clock_offset);
|
|
1129 |
qemu_put_be64(f, cpu_ticks_offset);
|
|
1130 |
qemu_put_be64(f, ticks_per_sec);
|
|
1131 |
qemu_put_be64(f, cpu_clock_offset);
|
|
1132 | 1132 |
} |
1133 | 1133 |
|
1134 | 1134 |
static int timer_load(QEMUFile *f, void *opaque, int version_id) |
... | ... | |
1138 | 1138 |
if (cpu_ticks_enabled) { |
1139 | 1139 |
return -EINVAL; |
1140 | 1140 |
} |
1141 |
qemu_get_be64s(f, &cpu_ticks_offset);
|
|
1142 |
qemu_get_be64s(f, &ticks_per_sec);
|
|
1141 |
cpu_ticks_offset=qemu_get_be64(f);
|
|
1142 |
ticks_per_sec=qemu_get_be64(f);
|
|
1143 | 1143 |
if (version_id == 2) { |
1144 |
qemu_get_be64s(f, &cpu_clock_offset);
|
|
1144 |
cpu_clock_offset=qemu_get_be64(f);
|
|
1145 | 1145 |
} |
1146 | 1146 |
return 0; |
1147 | 1147 |
} |
Also available in: Unified diff