25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: main.c,v 1.243 2005/08/07 17:42:02 debug Exp $ |
* $Id: main.c,v 1.248 2005/11/23 02:17:00 debug Exp $ |
29 |
*/ |
*/ |
30 |
|
|
31 |
#include <stdio.h> |
#include <stdio.h> |
200 |
|
|
201 |
printf("\nusage: %s [machine, other, and general options] [file " |
printf("\nusage: %s [machine, other, and general options] [file " |
202 |
"[...]]\n", progname); |
"[...]]\n", progname); |
203 |
printf(" or %s [general options] @configfile [...]\n", progname); |
printf(" or %s [general options] @configfile\n", progname); |
204 |
printf(" or %s [userland, other, and general options] file " |
printf(" or %s [userland, other, and general options] file " |
205 |
"[args ...]\n", progname); |
"[args ...]\n", progname); |
206 |
|
|
513 |
break; |
break; |
514 |
case 'Y': |
case 'Y': |
515 |
m->x11_scaledown = atoi(optarg); |
m->x11_scaledown = atoi(optarg); |
516 |
|
if (m->x11_scaledown < -1) { |
517 |
|
m->x11_scaleup = - m->x11_scaledown; |
518 |
|
m->x11_scaledown = 1; |
519 |
|
} |
520 |
if (m->x11_scaledown < 1) { |
if (m->x11_scaledown < 1) { |
521 |
fprintf(stderr, "Invalid scaledown value.\n"); |
fprintf(stderr, "Invalid scaledown value.\n"); |
522 |
exit(1); |
exit(1); |
600 |
|
|
601 |
if ((m->instruction_trace || m->register_dump || m->show_trace_tree) |
if ((m->instruction_trace || m->register_dump || m->show_trace_tree) |
602 |
&& m->bintrans_enable) { |
&& m->bintrans_enable) { |
603 |
fprintf(stderr, "Implicitly turning off bintrans.\n"); |
if (m->arch == ARCH_MIPS) |
604 |
|
fprintf(stderr, "Implicitly turning off bintrans.\n"); |
605 |
m->bintrans_enable = 0; |
m->bintrans_enable = 0; |
606 |
} |
} |
607 |
|
|
651 |
exit(1); |
exit(1); |
652 |
} |
} |
653 |
|
|
654 |
if (m->bintrans_enable) { |
if (m->bintrans_enable && m->arch == ARCH_MIPS) { |
655 |
m->speed_tricks = 0; |
m->speed_tricks = 0; |
656 |
/* TODO: Print a warning about this? */ |
/* TODO: Print a warning about this? */ |
657 |
} |
} |
808 |
} |
} |
809 |
|
|
810 |
device_set_exit_on_error(0); |
device_set_exit_on_error(0); |
811 |
|
console_warn_if_slaves_are_needed(); |
812 |
|
|
813 |
/* Run all emulations: */ |
/* Run all emulations: */ |
814 |
emul_run(emuls, n_emuls); |
emul_run(emuls, n_emuls); |