+ /* On x86 target architecture, the PIT reset function (called
+ by qemu_system_reset) will end up calling qemu_clock_warp
+ and then icount_warp_rt changing vm_clock_warp_start from 0 (initial
+ value) to -1. This in turn will make us skip the initial offset
+ between the real and virtual clocks (initially virtual clock is 0).
+ Therefore we save it in clocks_offset. On ARM, we don't have this
+ problem and clocks_offset will be 0. */
+ if (clocks_offset == -1 && icount_align_option) {
+ clocks_offset = vm_clock_warp_start;
+ }