/[qemu]/qemu/vl.c
ViewVC logotype

Diff of /qemu/vl.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by bellard, Sun Jul 6 17:15:21 2003 UTC revision 1.13 by bellard, Sat Jul 26 12:06:08 2003 UTC
# Line 2540  CPUState *cpu_gdbstub_get_env(void *opaq Line 2540  CPUState *cpu_gdbstub_get_env(void *opaq
2540      return global_env;      return global_env;
2541  }  }
2542    
2543  void main_loop(void *opaque)  int main_loop(void *opaque)
2544  {  {
2545      struct pollfd ufds[2], *pf, *serial_ufd, *net_ufd, *gdb_ufd;      struct pollfd ufds[2], *pf, *serial_ufd, *net_ufd, *gdb_ufd;
2546      int ret, n, timeout;      int ret, n, timeout;
# Line 2552  void main_loop(void *opaque) Line 2552  void main_loop(void *opaque)
2552          ret = cpu_x86_exec(env);          ret = cpu_x86_exec(env);
2553          if (reset_requested)          if (reset_requested)
2554              break;              break;
2555                    if (ret == EXCP_DEBUG)
2556                return EXCP_DEBUG;
2557          /* if hlt instruction, we wait until the next IRQ */          /* if hlt instruction, we wait until the next IRQ */
2558          if (ret == EXCP_HLT)          if (ret == EXCP_HLT)
2559              timeout = 10;              timeout = 10;
# Line 2618  void main_loop(void *opaque) Line 2619  void main_loop(void *opaque)
2619              timer_irq_pending = 0;              timer_irq_pending = 0;
2620          }          }
2621      }      }
2622        return EXCP_INTERRUPT;
2623  }  }
2624    
2625  void help(void)  void help(void)

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26