25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: emul.c,v 1.255 2006/06/24 19:52:27 debug Exp $ |
* $Id: emul.c,v 1.258 2006/07/20 21:52:59 debug Exp $ |
29 |
* |
* |
30 |
* Emulation startup and misc. routines. |
* Emulation startup and misc. routines. |
31 |
*/ |
*/ |
1279 |
case ARCH_SPARC: |
case ARCH_SPARC: |
1280 |
break; |
break; |
1281 |
|
|
1282 |
|
case ARCH_TRANSPUTER: |
1283 |
|
cpu->pc &= 0xffffffffULL; |
1284 |
|
break; |
1285 |
|
|
1286 |
case ARCH_X86: |
case ARCH_X86: |
1287 |
/* |
/* |
1288 |
* NOTE: The toc field is used to indicate an ELF32 |
* NOTE: The toc field is used to indicate an ELF32 |
1586 |
go = 0; |
go = 0; |
1587 |
|
|
1588 |
/* Flush X11 and serial console output every now and then: */ |
/* Flush X11 and serial console output every now and then: */ |
1589 |
if (emuls[0]->machines[0]->ncycles > |
if (emuls[0]->machines[0]->ninstrs > |
1590 |
emuls[0]->machines[0]->ncycles_flush + (1<<18)) { |
emuls[0]->machines[0]->ninstrs_flush + (1<<19)) { |
1591 |
x11_check_event(emuls, n_emuls); |
x11_check_event(emuls, n_emuls); |
1592 |
console_flush(); |
console_flush(); |
1593 |
emuls[0]->machines[0]->ncycles_flush = |
emuls[0]->machines[0]->ninstrs_flush = |
1594 |
emuls[0]->machines[0]->ncycles; |
emuls[0]->machines[0]->ninstrs; |
1595 |
} |
} |
1596 |
|
|
1597 |
if (emuls[0]->machines[0]->ncycles > |
if (emuls[0]->machines[0]->ninstrs > |
1598 |
emuls[0]->machines[0]->ncycles_show + (1<<25)) { |
emuls[0]->machines[0]->ninstrs_show + (1<<25)) { |
1599 |
emuls[0]->machines[0]->ncycles_since_gettimeofday += |
emuls[0]->machines[0]->ninstrs_since_gettimeofday += |
1600 |
(emuls[0]->machines[0]->ncycles - |
(emuls[0]->machines[0]->ninstrs - |
1601 |
emuls[0]->machines[0]->ncycles_show); |
emuls[0]->machines[0]->ninstrs_show); |
1602 |
cpu_show_cycles(emuls[0]->machines[0], 0); |
cpu_show_cycles(emuls[0]->machines[0], 0); |
1603 |
emuls[0]->machines[0]->ncycles_show = |
emuls[0]->machines[0]->ninstrs_show = |
1604 |
emuls[0]->machines[0]->ncycles; |
emuls[0]->machines[0]->ninstrs; |
1605 |
} |
} |
1606 |
|
|
1607 |
if (single_step == ENTER_SINGLE_STEPPING) { |
if (single_step == ENTER_SINGLE_STEPPING) { |