Revision b03b2e48 vl.c
b/vl.c | ||
---|---|---|
1067 | 1067 |
|
1068 | 1068 |
static void timer_save(QEMUFile *f, void *opaque) |
1069 | 1069 |
{ |
1070 |
if (cpu_ticks_enabled) { |
|
1071 |
hw_error("cannot save state if virtual timers are running"); |
|
1072 |
} |
|
1073 | 1070 |
qemu_put_be64(f, cpu_ticks_offset); |
1074 | 1071 |
qemu_put_be64(f, ticks_per_sec); |
1075 | 1072 |
qemu_put_be64(f, cpu_clock_offset); |
... | ... | |
1079 | 1076 |
{ |
1080 | 1077 |
if (version_id != 1 && version_id != 2) |
1081 | 1078 |
return -EINVAL; |
1082 |
if (cpu_ticks_enabled) { |
|
1083 |
return -EINVAL; |
|
1084 |
} |
|
1085 | 1079 |
cpu_ticks_offset=qemu_get_be64(f); |
1086 | 1080 |
ticks_per_sec=qemu_get_be64(f); |
1087 | 1081 |
if (version_id == 2) { |
Also available in: Unified diff