mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
replay: move internal data to the structure
This patch moves replay static variables into the structure to allow saving and loading them with savevm/loadvm. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> Message-Id: <20160926080804.6992.87687.stgit@PASHA-ISP> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
c265e976f4
commit
f186d64d8f
5 changed files with 24 additions and 23 deletions
|
@ -31,7 +31,7 @@ int64_t replay_save_clock(ReplayClockKind kind, int64_t clock)
|
|||
|
||||
void replay_read_next_clock(ReplayClockKind kind)
|
||||
{
|
||||
unsigned int read_kind = replay_data_kind - EVENT_CLOCK;
|
||||
unsigned int read_kind = replay_state.data_kind - EVENT_CLOCK;
|
||||
|
||||
assert(read_kind == kind);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue