Commit f76981b1132e0b4f99a141ed69621e9e160f2b29

Authored by blueswir1
1 parent fb79ceb9

Print default and available CPU features separately

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4912 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 7 additions and 4 deletions
target-sparc/helper.c
... ... @@ -1570,11 +1570,14 @@ void sparc_cpu_list(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
1570 1570 sparc_defs[i].features, "+");
1571 1571 (*cpu_fprintf)(f, "\n");
1572 1572 }
1573   - (*cpu_fprintf)(f, "CPU feature flags (+/-): ");
1574   - print_features(f, cpu_fprintf, -1, NULL);
  1573 + (*cpu_fprintf)(f, "Default CPU feature flags (use '-' to remove): ");
  1574 + print_features(f, cpu_fprintf, CPU_DEFAULT_FEATURES, NULL);
1575 1575 (*cpu_fprintf)(f, "\n");
1576   - (*cpu_fprintf)(f, "Numerical features (=): iu_version fpu_version "
1577   - "mmu_version nwindows\n");
  1576 + (*cpu_fprintf)(f, "Available CPU feature flags (use '+' to add): ");
  1577 + print_features(f, cpu_fprintf, ~CPU_DEFAULT_FEATURES, NULL);
  1578 + (*cpu_fprintf)(f, "\n");
  1579 + (*cpu_fprintf)(f, "Numerical features (use '=' to set): iu_version "
  1580 + "fpu_version mmu_version nwindows\n");
1578 1581 }
1579 1582  
1580 1583 #define GET_FLAG(a,b) ((env->psr & a)?b:'-')
... ...