icount: get rid of static variable
commitfe852ac2b3725055bb210270e3aca5a0ed4b6217
authorPavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
Mon, 29 Mar 2021 10:22:30 +0000 (29 13:22 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Apr 2021 07:40:45 +0000 (1 09:40 +0200)
treea8fb5f2b635cc9278eecdb7f2240abc8030044f1
parentcb4d9e38bd2a9077716d2e41778cd0bb155ae119
icount: get rid of static variable

This patch moves static last_delta variable into timers_state
structure to allow correct vmstate operations with icount shift=auto enabled.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Message-Id: <161701335066.1180180.7104085247702343395.stgit@pasha-ThinkPad-X280>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
softmmu/cpu-timers.c
softmmu/icount.c
softmmu/timers-state.h