diff options
author | Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru> | 2021-03-29 13:22:30 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-04-01 09:40:45 +0200 |
commit | fe852ac2b3725055bb210270e3aca5a0ed4b6217 (patch) | |
tree | a8fb5f2b635cc9278eecdb7f2240abc8030044f1 /softmmu/timers-state.h | |
parent | cb4d9e38bd2a9077716d2e41778cd0bb155ae119 (diff) | |
download | qemu-fe852ac2b3725055bb210270e3aca5a0ed4b6217.zip qemu-fe852ac2b3725055bb210270e3aca5a0ed4b6217.tar.gz qemu-fe852ac2b3725055bb210270e3aca5a0ed4b6217.tar.bz2 |
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>
Diffstat (limited to 'softmmu/timers-state.h')
-rw-r--r-- | softmmu/timers-state.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |