[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [7027] target-alpha: stop translation if too long
From: |
Aurelien Jarno |
Subject: |
[Qemu-devel] [7027] target-alpha: stop translation if too long |
Date: |
Tue, 07 Apr 2009 21:44:53 +0000 |
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 <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>
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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [7027] target-alpha: stop translation if too long,
Aurelien Jarno <=