summaryrefslogtreecommitdiffstats
path: root/replay
diff options
context:
space:
mode:
authorPavel Dovgalyuk2019-07-25 10:44:15 +0200
committerPaolo Bonzini2019-08-20 17:26:21 +0200
commit245429e4a0e036471ba46e2393b6f33b78b9615e (patch)
treeb5176acf71a9a345aa9c13e87d318d4e191088c2 /replay
parenttimer: last, remove last bits of last (diff)
downloadqemu-245429e4a0e036471ba46e2393b6f33b78b9615e.tar.gz
qemu-245429e4a0e036471ba46e2393b6f33b78b9615e.tar.xz
qemu-245429e4a0e036471ba46e2393b6f33b78b9615e.zip
replay: add missing fix for internal function
This is a fix which was missed by patch 74c0b816adfc6aa1b01b4426fdf385e32e35cbac, which added current_step parameter to the replay_advance_current_step function. Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru> Message-Id: <156404425561.18669.13015037579222450241.stgit@pasha-Precision-3630-Tower> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'replay')
-rw-r--r--replay/replay-internal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/replay/replay-internal.c b/replay/replay-internal.c
index c013b23820..7b42767059 100644
--- a/replay/replay-internal.c
+++ b/replay/replay-internal.c
@@ -229,7 +229,7 @@ void replay_mutex_unlock(void)
void replay_advance_current_step(uint64_t current_step)
{
- int diff = (int)(replay_get_current_step() - replay_state.current_step);
+ int diff = (int)(current_step - replay_state.current_step);
/* Time can only go forward */
assert(diff >= 0);