summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-01-23 19:01:12 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-01-23 19:01:12 +0000
commit40a2e657a5e055f3962639dd9bdec788aaf415c5 (patch)
treef77b32f9c468e652b771a3358be3c8c807310121 /vl.c
parentc304f7e23db91e7add1e72d8e11b839937ac39a0 (diff)
downloadqemu-40a2e657a5e055f3962639dd9bdec788aaf415c5.tar.gz
Add option to disable TB cache, by Herve Poussineau.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3930 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 19cd928d76..8c63ad953a 100644
--- a/vl.c
+++ b/vl.c
@@ -240,6 +240,8 @@ static CPUState *cur_cpu;
static CPUState *next_cpu;
static int event_pending = 1;
+extern char *logfilename;
+
#define TFR(expr) do { if ((expr) != -1) break; } while (errno == EINTR)
/***********************************************************/
@@ -7661,6 +7663,9 @@ static void help(int exitcode)
#endif
"-clock force the use of the given methods for timer alarm.\n"
" To see what timers are available use -clock help\n"
+ "-startdate select initial date of the Qemu clock\n"
+ "-translation setting1,... configures code translation\n"
+ " (use -translation ? for a list of settings)\n"
"\n"
"During emulation, the following keys are useful:\n"
"ctrl-alt-f toggle full screen\n"
@@ -7676,7 +7681,7 @@ static void help(int exitcode)
DEFAULT_NETWORK_DOWN_SCRIPT,
#endif
DEFAULT_GDBSTUB_PORT,
- "/tmp/qemu.log");
+ logfilename);
exit(exitcode);
}
@@ -7763,6 +7768,7 @@ enum {
QEMU_OPTION_old_param,
QEMU_OPTION_clock,
QEMU_OPTION_startdate,
+ QEMU_OPTION_translation,
};
typedef struct QEMUOption {
@@ -7871,6 +7877,7 @@ const QEMUOption qemu_options[] = {
#endif
{ "clock", HAS_ARG, QEMU_OPTION_clock },
{ "startdate", HAS_ARG, QEMU_OPTION_startdate },
+ { "translation", HAS_ARG, QEMU_OPTION_translation },
{ NULL },
};
@@ -8713,6 +8720,22 @@ int main(int argc, char **argv)
}
}
break;
+ case QEMU_OPTION_translation:
+ {
+ int mask;
+ CPUTranslationSetting *setting;
+
+ mask = cpu_str_to_translation_mask(optarg);
+ if (!mask) {
+ printf("Translation settings (comma separated):\n");
+ for(setting = cpu_translation_settings; setting->mask != 0; setting++) {
+ printf("%-10s %s\n", setting->name, setting->help);
+ }
+ exit(1);
+ }
+ cpu_set_translation_settings(mask);
+ }
+ break;
}
}
}