Patchwork [15/21] target-i386: cpu: substitute '_' with '-' for +-foo feature bits as well

login
register
mail settings
Submitter Igor Mammedov
Date July 15, 2013, 10:26 p.m.
Message ID <1373927181-24247-17-git-send-email-imammedo@redhat.com>
Download mbox | patch
Permalink /patch/259293/
State New
Headers show

Comments

Igor Mammedov - July 15, 2013, 10:26 p.m.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
 target-i386/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index 2c8e710..12d5d29 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -1598,13 +1598,13 @@  static void cpu_x86_parse_featurestr(X86CPU *cpu, char *features, Error **errp)
 
     while (featurestr) {
         char *val;
+        feat2prop(featurestr);
         if (featurestr[0] == '+') {
             add_flagname_to_bitmaps(featurestr + 1, plus_features);
         } else if (featurestr[0] == '-') {
             add_flagname_to_bitmaps(featurestr + 1, minus_features);
         } else if ((val = strchr(featurestr, '='))) {
             *val = 0; val++;
-            feat2prop(featurestr);
             if (!strcmp(featurestr, "xlevel")) {
                 char *err;
                 char num[32];