qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [7027] target-alpha: stop translation if too long
@ 2009-04-07 21:44 Aurelien Jarno
  0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2009-04-07 21:44 UTC (permalink / raw)
  To: qemu-devel

Revision: 7027
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7027
Author:   aurel32
Date:     2009-04-07 21:44:52 +0000 (Tue, 07 Apr 2009)
Log Message:
-----------
target-alpha: stop translation if too long

Signed-off-by: Tristan Gingold <gingold@adacore.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

Modified Paths:
--------------
    trunk/target-alpha/translate.c

Modified: trunk/target-alpha/translate.c
===================================================================
--- trunk/target-alpha/translate.c	2009-04-07 20:55:58 UTC (rev 7026)
+++ trunk/target-alpha/translate.c	2009-04-07 21:44:52 UTC (rev 7027)
@@ -2404,16 +2404,20 @@
         /* if we reach a page boundary or are single stepping, stop
          * generation
          */
-        if (((ctx.pc & (TARGET_PAGE_SIZE - 1)) == 0) ||
-            num_insns >= max_insns) {
-            break;
-        }
-
         if (env->singlestep_enabled) {
             gen_excp(&ctx, EXCP_DEBUG, 0);
             break;
         }
 
+        if ((ctx.pc & (TARGET_PAGE_SIZE - 1)) == 0)
+            break;
+
+        if (gen_opc_ptr >= gen_opc_end)
+            break;
+
+        if (num_insns >= max_insns)
+            break;
+
         if (singlestep) {
             break;
         }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-07 21:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-07 21:44 [Qemu-devel] [7027] target-alpha: stop translation if too long Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).