qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v8 1/9] replay: exception replay fix


From: Pavel Dovgalyuk
Subject: [Qemu-devel] [PATCH v8 1/9] replay: exception replay fix
Date: Thu, 26 Jan 2017 15:34:18 +0300
User-agent: StGit/0.16

This patch fixes replaying the exception when TB cache is full.
It breaks cpu loop execution through setting exception_index
to process such queued work as TB flush.

v8: moved setting of exeption_index to tb_gen_code

Signed-off-by: Pavel Dovgalyuk <address@hidden>
---
 translate-all.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/translate-all.c b/translate-all.c
index 2026293..abce8f1 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -1290,6 +1290,9 @@ TranslationBlock *tb_gen_code(CPUState *cpu,
         /* flush must be done */
         tb_flush(cpu);
         mmap_unlock();
+        /* Set exception index to make sure that the execution loop
+           will exit and go to flushing and other queued work. */
+        cpu->exception_index = EXCP_INTERRUPT;
         cpu_loop_exit(cpu);
     }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]