diff options
author | Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru> | 2019-07-25 11:44:43 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-08-20 17:26:22 +0200 |
commit | 13f267133f349f8a322b5385a58688f0dcdf9ed2 (patch) | |
tree | 2baebecd68234ab002c1e79f9c28d9cafa1c4f48 /replay/replay-snapshot.c | |
parent | 82f49156531b3345fe03a74ca449147db5828238 (diff) | |
download | qemu-13f267133f349f8a322b5385a58688f0dcdf9ed2.zip qemu-13f267133f349f8a322b5385a58688f0dcdf9ed2.tar.gz qemu-13f267133f349f8a322b5385a58688f0dcdf9ed2.tar.bz2 |
replay: rename step-related variables and functions
This patch renames replay_get_current_step() and related variables
to make these names consistent with existing 'icount' command line
option and future record/replay hmp/qmp commands.
Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Message-Id: <156404428377.18669.15476429889039912070.stgit@pasha-Precision-3630-Tower>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'replay/replay-snapshot.c')
-rw-r--r-- | replay/replay-snapshot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/replay/replay-snapshot.c b/replay/replay-snapshot.c index e6a7d00..e26fa4c 100644 --- a/replay/replay-snapshot.c +++ b/replay/replay-snapshot.c @@ -38,7 +38,7 @@ static int replay_post_load(void *opaque, int version_id) } else if (replay_mode == REPLAY_MODE_RECORD) { /* This is only useful for loading the initial state. Therefore reset all the counters. */ - state->instructions_count = 0; + state->instruction_count = 0; state->block_request_id = 0; } @@ -53,8 +53,8 @@ static const VMStateDescription vmstate_replay = { .post_load = replay_post_load, .fields = (VMStateField[]) { VMSTATE_INT64_ARRAY(cached_clock, ReplayState, REPLAY_CLOCK_COUNT), - VMSTATE_UINT64(current_step, ReplayState), - VMSTATE_INT32(instructions_count, ReplayState), + VMSTATE_UINT64(current_icount, ReplayState), + VMSTATE_INT32(instruction_count, ReplayState), VMSTATE_UINT32(data_kind, ReplayState), VMSTATE_UINT32(has_unread_data, ReplayState), VMSTATE_UINT64(file_offset, ReplayState), |