summaryrefslogtreecommitdiff
path: root/cpu-all.h
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 /cpu-all.h
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 'cpu-all.h')
-rw-r--r--cpu-all.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/cpu-all.h b/cpu-all.h
index 3df0fb8a95..968323db26 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -787,6 +787,20 @@ void cpu_set_log(int log_flags);
void cpu_set_log_filename(const char *filename);
int cpu_str_to_log_mask(const char *str);
+#define CPU_SETTING_NO_CACHE (1 << 0)
+
+/* define translation settings */
+typedef struct CPUTranslationSetting {
+ int mask;
+ const char *name;
+ const char *help;
+} CPUTranslationSetting;
+
+extern CPUTranslationSetting cpu_translation_settings[];
+
+void cpu_set_translation_settings(int translation_flags);
+int cpu_str_to_translation_mask(const char *str);
+
/* IO ports API */
/* NOTE: as these functions may be even used when there is an isa