Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrJ6H-0007pL-3h for qemu-devel@nongnu.org; Tue, 07 Apr 2009 17:44:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrJ6F-0007oT-Q6 for qemu-devel@nongnu.org; Tue, 07 Apr 2009 17:44:56 -0400 Received: from [199.232.76.173] (port=58101 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrJ6E-0007oG-Oh for qemu-devel@nongnu.org; Tue, 07 Apr 2009 17:44:54 -0400 Received: from savannah.gnu.org ([199.232.41.3]:41355 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LrJ6E-00031g-Eg for qemu-devel@nongnu.org; Tue, 07 Apr 2009 17:44:54 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LrJ6D-0002kk-Od for qemu-devel@nongnu.org; Tue, 07 Apr 2009 21:44:53 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LrJ6D-0002kf-3p for qemu-devel@nongnu.org; Tue, 07 Apr 2009 21:44:53 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Tue, 07 Apr 2009 21:44:53 +0000 Subject: [Qemu-devel] [7027] target-alpha: stop translation if too long Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 Signed-off-by: Aurelien Jarno 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; }