aboutsummaryrefslogtreecommitdiff
path: root/target-sparc
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-20 18:23:50 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-20 18:23:50 +0000
commitf76981b1132e0b4f99a141ed69621e9e160f2b29 (patch)
tree970897bfef095e44b362d314e68a4ec3ae43ee2a /target-sparc
parentfb79ceb91a6ff9ee52265893f9d66dd6833726da (diff)
Print default and available CPU features separately
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4912 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc')
-rw-r--r--target-sparc/helper.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/target-sparc/helper.c b/target-sparc/helper.c
index be439dde57..44406e17e6 100644
--- a/target-sparc/helper.c
+++ b/target-sparc/helper.c
@@ -1570,11 +1570,14 @@ void sparc_cpu_list(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
sparc_defs[i].features, "+");
(*cpu_fprintf)(f, "\n");
}
- (*cpu_fprintf)(f, "CPU feature flags (+/-): ");
- print_features(f, cpu_fprintf, -1, NULL);
+ (*cpu_fprintf)(f, "Default CPU feature flags (use '-' to remove): ");
+ print_features(f, cpu_fprintf, CPU_DEFAULT_FEATURES, NULL);
(*cpu_fprintf)(f, "\n");
- (*cpu_fprintf)(f, "Numerical features (=): iu_version fpu_version "
- "mmu_version nwindows\n");
+ (*cpu_fprintf)(f, "Available CPU feature flags (use '+' to add): ");
+ print_features(f, cpu_fprintf, ~CPU_DEFAULT_FEATURES, NULL);
+ (*cpu_fprintf)(f, "\n");
+ (*cpu_fprintf)(f, "Numerical features (use '=' to set): iu_version "
+ "fpu_version mmu_version nwindows\n");
}
#define GET_FLAG(a,b) ((env->psr & a)?b:'-')