您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

qemu-patch 752B

1234567891011121314151617181920212223242526
  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();