cpu: replay instructions sequence
commit8b42704441865611a5ee241ac9fc5cabc47a079b
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Thu, 17 Sep 2015 16:24:05 +0000 (17 19:24 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 5 Nov 2015 11:19:09 +0000 (5 12:19 +0100)
tree1aeab041d26c9f2807ebde66add739e2ade91654
parent56c0269a9ec105d3848d9f900b5e38e6b35e2478
cpu: replay instructions sequence

This patch adds calls to replay functions into the icount setup block.
In record mode number of executed instructions is written to the log.
In replay mode number of istructions to execute is taken from the replay log.
When replayed instructions counter is expired qemu_notify_event()
function is called to wake up the iothread.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Message-Id: <20150917162405.8676.31890.stgit@PASHA-ISP.def.inno>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
cpus.c
include/sysemu/replay.h
replay/replay.c