Document requisite patch for qemu
[people/xl0/gpxe.git] / contrib / bochs / qemu-patch
1 Index: qemu/cpu-exec.c
2 ===================================================================
3 RCS file: /sources/qemu/qemu/cpu-exec.c,v
4 retrieving revision 1.84
5 diff -u -r1.84 cpu-exec.c
6 --- qemu/cpu-exec.c     29 Jul 2006 19:09:31 -0000      1.84
7 +++ qemu/cpu-exec.c     28 Aug 2006 01:54:15 -0000
8 @@ -788,6 +788,18 @@
9                      cpu_loop_exit();
10                  }
11  #endif
12 +#if 1
13 +#define MIN_CYCLE_COUNT 100
14 +               {
15 +                    static int cycle_count;
16 +                 
17 +                   if (++cycle_count > MIN_CYCLE_COUNT) {
18 +                        cycle_count = 0;
19 +                        env->exception_index = EXCP_INTERRUPT;
20 +                        cpu_loop_exit();
21 +                    }
22 +               }
23 +#endif
24              }
25          } else {
26              env_to_regs();