Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Brown
committed
Aug 28, 2006
1 parent
18a84f4
commit 6e5ffef
Showing
2 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Index: qemu/cpu-exec.c | ||
=================================================================== | ||
RCS file: /sources/qemu/qemu/cpu-exec.c,v | ||
retrieving revision 1.84 | ||
diff -u -r1.84 cpu-exec.c | ||
--- qemu/cpu-exec.c 29 Jul 2006 19:09:31 -0000 1.84 | ||
+++ qemu/cpu-exec.c 28 Aug 2006 01:54:15 -0000 | ||
@@ -788,6 +788,18 @@ | ||
cpu_loop_exit(); | ||
} | ||
#endif | ||
+#if 1 | ||
+#define MIN_CYCLE_COUNT 100 | ||
+ { | ||
+ static int cycle_count; | ||
+ | ||
+ if (++cycle_count > MIN_CYCLE_COUNT) { | ||
+ cycle_count = 0; | ||
+ env->exception_index = EXCP_INTERRUPT; | ||
+ cpu_loop_exit(); | ||
+ } | ||
+ } | ||
+#endif | ||
} | ||
} else { | ||
env_to_regs(); |