summaryrefslogtreecommitdiffstats
path: root/contrib/bochs/qemu-patch
diff options
context:
space:
mode:
authorMichael Brown2006-08-28 03:58:52 +0200
committerMichael Brown2006-08-28 03:58:52 +0200
commit6e5ffefd79db740a66e165696663dad28e458cf9 (patch)
treecfc220531a38e8563a2395c7da811d5049fa19f0 /contrib/bochs/qemu-patch
parentAdd --enable-show-ips; it's useful when using the profiling code. (diff)
downloadipxe-6e5ffefd79db740a66e165696663dad28e458cf9.tar.gz
ipxe-6e5ffefd79db740a66e165696663dad28e458cf9.tar.xz
ipxe-6e5ffefd79db740a66e165696663dad28e458cf9.zip
Document requisite patch for qemu
Diffstat (limited to 'contrib/bochs/qemu-patch')
-rw-r--r--contrib/bochs/qemu-patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/bochs/qemu-patch b/contrib/bochs/qemu-patch
new file mode 100644
index 00000000..5fb6c09e
--- /dev/null
+++ b/contrib/bochs/qemu-patch
@@ -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();