]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
replay: add missing fix for internal function
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Thu, 25 Jul 2019 08:44:15 +0000 (11:44 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Aug 2019 15:26:21 +0000 (17:26 +0200)
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>
replay/replay-internal.c

index c013b2382051f8a7d176934c494a269098c59599..7b427670594e184799024a0f0ddecd8eceb71149 100644 (file)
@@ -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);