qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [RFC PATCH V7 17/19] translate-all: (wip) use tb_flush_safe


From: fred . konrad
Subject: [Qemu-devel] [RFC PATCH V7 17/19] translate-all: (wip) use tb_flush_safe when we can't alloc more tb.
Date: Mon, 10 Aug 2015 17:27:15 +0200

From: KONRAD Frederic <address@hidden>

This changes just the tb_flush called from tb_alloc.

TODO:
 * changes the other tb_flush.

Signed-off-by: KONRAD Frederic <address@hidden>
---
 translate-all.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/translate-all.c b/translate-all.c
index 7094bf0..cabce75 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -1148,7 +1148,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu,
     tb = tb_alloc(pc);
     if (!tb) {
         /* flush must be done */
-        tb_flush(cpu);
+        tb_flush_safe(cpu);
         /* cannot fail at this point */
         tb = tb_alloc(pc);
         /* Don't forget to invalidate previous TB info.  */
-- 
1.9.0




reply via email to

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