aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorPavel Dovgalyuk <dovgaluk@ispras.ru>2017-02-07 09:54:57 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2017-02-24 15:51:19 +0100
commitcfb2d02be9413d45b30ed6d8e38800250b6b4b48 (patch)
tree20061573b26c877ddc37e96485102d1717fe33f3 /backends
parent1aab16c28a0232d898d6f56f5a56019472296ee7 (diff)
downloadqemu-cfb2d02be9413d45b30ed6d8e38800250b6b4b48.zip
qemu-cfb2d02be9413d45b30ed6d8e38800250b6b4b48.tar.gz
qemu-cfb2d02be9413d45b30ed6d8e38800250b6b4b48.tar.bz2
replay: check icount in cpu exec loop
This patch adds check to break cpu loop when icount expires without setting the TB_EXIT_ICOUNT_EXPIRED flag. It happens when there is no available translated blocks and all instructions were executed. In icount replay mode unnecessary tb_find will be called (which may cause an exception) and execution will be non-deterministic. Because cpu_loop_exec_tb cannot longjmp anymore, we can remove the anticipated call to align_clocks in cpu_loop_exec_tb, as well as the SyncClocks *sc argument. Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> Message-Id: <002801d2810f$18809c20$4981d460$@ru> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Pavel Dovgalyuk <dovgaluk@ispras.ru>
Diffstat (limited to 'backends')
0 files changed, 0 insertions, 0 deletions