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 |
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]); |
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); |