qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 06/19] Bug fix alpha: stop translation if too long


From: Tristan Gingold
Subject: [Qemu-devel] [PATCH 06/19] Bug fix alpha: stop translation if too long
Date: Mon, 30 Mar 2009 16:36:21 +0200

Signed-off-by: Tristan Gingold <address@hidden>
---
 target-alpha/translate.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index e9463ae..dad1686 100644
--- a/target-alpha/translate.c
+++ b/target-alpha/translate.c
@@ -2401,10 +2401,10 @@ static always_inline void 
gen_intermediate_code_internal (CPUState *env,
         ret = translate_one(ctxp, insn);
         if (ret != 0)
             break;
-        /* if we reach a page boundary or are single stepping, stop
-         * generation
-         */
+        /* if we reach a page boundary, or translation is too long
+           or are single stepping, stop generation.  */
         if (((ctx.pc & (TARGET_PAGE_SIZE - 1)) == 0) ||
+            gen_opc_ptr >= gen_opc_end ||
             num_insns >= max_insns) {
             break;
         }
-- 
1.6.2





reply via email to

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