--- trunk/src/main.c 2007/10/08 16:18:27 10 +++ trunk/src/main.c 2007/10/08 16:18:38 12 @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * - * $Id: main.c,v 1.238 2005/06/25 13:25:33 debug Exp $ + * $Id: main.c,v 1.243 2005/08/07 17:42:02 debug Exp $ */ #include @@ -217,6 +217,8 @@ "with -E.)\n"); printf("\nOther options:\n"); + printf(" -A disable alignment checks in some cases (for higher" + " speed)\n"); #ifdef BINTRANS printf(" -B disable dynamic binary translation. (translation" " is turned on\n by default, if the host " @@ -338,9 +340,13 @@ int msopts = 0; /* Machine-specific options used */ struct machine *m = emul_add_machine(emul, "default"); - while ((ch = getopt(argc, argv, "BC:Dd:E:e:HhI:iJj:KM:m:" + while ((ch = getopt(argc, argv, "ABC:Dd:E:e:HhI:iJj:KM:m:" "Nn:Oo:p:QqRrSsTtUu:VvW:XxY:y:Z:z:")) != -1) { switch (ch) { + case 'A': + m->dyntrans_alignment_check = 0; + msopts = 1; + break; case 'B': m->bintrans_enable = 0; msopts = 1; @@ -547,7 +553,9 @@ } } - if (type != NULL) { + if (type != NULL || subtype != NULL) { + if (type == NULL) + type = ""; if (subtype == NULL) subtype = ""; res = machine_name_to_type(type, subtype, @@ -570,7 +578,7 @@ } - /* -i, -r, -t are pretty verbose: */ + /* -i and -r are pretty verbose: */ if (m->instruction_trace && !verbose) { fprintf(stderr, "Implicitly %sturning on -v, because" @@ -586,13 +594,6 @@ quiet_mode = 0; } - if (m->show_trace_tree && !verbose) { - fprintf(stderr, "Implicitly %sturning on -v, because" - " of -t\n", quiet_mode? "turning off -q and " : ""); - verbose = 1; - quiet_mode = 0; - } - if ((m->instruction_trace || m->register_dump || m->show_trace_tree) && m->bintrans_enable) { fprintf(stderr, "Implicitly turning off bintrans.\n"); @@ -650,8 +651,9 @@ /* TODO: Print a warning about this? */ } - if (m->n_breakpoints > 0 && m->bintrans_enable) { - fprintf(stderr, "Breakpoints and dynamic translation " + if (m->n_breakpoints > 0 && + m->bintrans_enable && m->arch == ARCH_MIPS) { + fprintf(stderr, "Breakpoints and MIPS binary translation " "don't work too well together right now.\n"); exit(1); } @@ -793,8 +795,8 @@ if (n_emuls == 0) { fprintf(stderr, "No emulations defined. Maybe you forgot to " - "use -E xx (and -e yy), to specify\nthe machine type)." - " For example:\n\n %s -E dec -e 3max -d disk.img\n\n" + "use -E xx and/or -e yy, to specify\nthe machine type." + " For example:\n\n %s -e 3max -d disk.img\n\n" "to boot an emulated DECstation 5000/200 with a disk " "image.\n", progname); exit(1);