/[gxemul]/trunk/src/cpu_run.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/cpu_run.c

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

revision 11 by dpavlin, Mon Oct 8 16:18:27 2007 UTC revision 12 by dpavlin, Mon Oct 8 16:18:38 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: cpu_run.c,v 1.8 2005/06/24 19:23:03 debug Exp $   *  $Id: cpu_run.c,v 1.9 2005/08/03 20:42:43 debug Exp $
29   *   *
30   *  Included from cpu_mips.c, cpu_ppc.c etc.  (The reason for this is that   *  Included from cpu_mips.c, cpu_ppc.c etc.  (The reason for this is that
31   *  the call to a specific cpu's routine that runs one instruction will   *  the call to a specific cpu's routine that runs one instruction will
# Line 67  int CPU_RUN(struct emul *emul, struct ma Line 67  int CPU_RUN(struct emul *emul, struct ma
67          running = 1;          running = 1;
68          rounds = 0;          rounds = 0;
69          while (running || single_step) {          while (running || single_step) {
70                  ncycles_chunk_end = machine->ncycles + (1 << 16);                  ncycles_chunk_end = machine->ncycles + (1 << 17);
71    
72                  machine->a_few_instrs = machine->a_few_cycles *                  machine->a_few_instrs = machine->a_few_cycles *
73                      instrs_per_cycle(cpus[0]);                      instrs_per_cycle(cpus[0]);
# Line 231  int CPU_RUN(struct emul *emul, struct ma Line 231  int CPU_RUN(struct emul *emul, struct ma
231    
232                  /*  If we've done buffered console output,                  /*  If we've done buffered console output,
233                      the flush stdout every now and then:  */                      the flush stdout every now and then:  */
234                  if (machine->ncycles > machine->ncycles_flush + (1<<16)) {                  if (machine->ncycles > machine->ncycles_flush + (1<<17)) {
235                          console_flush();                          console_flush();
236                          machine->ncycles_flush = machine->ncycles;                          machine->ncycles_flush = machine->ncycles;
237                  }                  }
238    
239                  if (machine->ncycles > machine->ncycles_show + (1<<23)) {                  if (machine->ncycles > machine->ncycles_show + (1<<25)) {
240                          machine->ncycles_since_gettimeofday +=                          machine->ncycles_since_gettimeofday +=
241                              (machine->ncycles - machine->ncycles_show);                              (machine->ncycles - machine->ncycles_show);
242                          cpu_show_cycles(machine, 0);                          cpu_show_cycles(machine, 0);

Legend:
Removed from v.11  
changed lines
  Added in v.12

  ViewVC Help
Powered by ViewVC 1.1.26