diff options
author | Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> | 2017-01-24 10:17:08 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-01-27 18:07:30 +0100 |
commit | d718b14b8cc2a28dcf48b68c87f16a36d280c36e (patch) | |
tree | 3fe54f24075b4c151186177e1a861e95ef97bea6 /cpu-exec.c | |
parent | 8094532b476754d751cd2a46958862fbaccadc24 (diff) | |
download | qemu-d718b14b8cc2a28dcf48b68c87f16a36d280c36e.zip qemu-d718b14b8cc2a28dcf48b68c87f16a36d280c36e.tar.gz qemu-d718b14b8cc2a28dcf48b68c87f16a36d280c36e.tar.bz2 |
replay: improve interrupt handling
This patch improves interrupt handling in record/replay mode.
Now "interrupt" event is saved only when cc->cpu_exec_interrupt returns true.
This patch also adds missing return to cpu_exec_interrupt function.
Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Message-Id: <20170124071708.4572.64023.stgit@PASHA-ISP>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'cpu-exec.c')
-rw-r--r-- | cpu-exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -508,8 +508,8 @@ static inline void cpu_handle_interrupt(CPUState *cpu, True when it is, and we should restart on a new TB, and via longjmp via cpu_loop_exit. */ else { - replay_interrupt(); if (cc->cpu_exec_interrupt(cpu, interrupt_request)) { + replay_interrupt(); *last_tb = NULL; } /* The target hook may have updated the 'cpu->interrupt_request'; |