From fe852ac2b3725055bb210270e3aca5a0ed4b6217 Mon Sep 17 00:00:00 2001 From: Pavel Dovgalyuk Date: Mon, 29 Mar 2021 13:22:30 +0300 Subject: 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 Message-Id: <161701335066.1180180.7104085247702343395.stgit@pasha-ThinkPad-X280> Signed-off-by: Paolo Bonzini --- softmmu/timers-state.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'softmmu/timers-state.h') diff --git a/softmmu/timers-state.h b/softmmu/timers-state.h index db4e60f..8c262ce 100644 --- a/softmmu/timers-state.h +++ b/softmmu/timers-state.h @@ -43,6 +43,8 @@ typedef struct TimersState { /* Conversion factor from emulated instructions to virtual clock ticks. */ int16_t icount_time_shift; + /* Icount delta used for shift auto adjust. */ + int64_t last_delta; /* Compensate for varying guest execution speed. */ int64_t qemu_icount_bias; -- cgit v1.1