diff options
author | Pavel Dovgalyuk <dovgaluk@ispras.ru> | 2017-02-07 09:54:57 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-02-24 15:51:19 +0100 |
commit | cfb2d02be9413d45b30ed6d8e38800250b6b4b48 (patch) | |
tree | 20061573b26c877ddc37e96485102d1717fe33f3 /backends/hostmem-file.c | |
parent | 1aab16c28a0232d898d6f56f5a56019472296ee7 (diff) | |
download | qemu-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/hostmem-file.c')
0 files changed, 0 insertions, 0 deletions