Patchwork [16/37] target-i386: Print deprecation warning if xlevel < 0x80000000

login
register
mail settings
Submitter Andreas Färber
Date Jan. 28, 2013, 4:18 p.m.
Message ID <1359389934-16663-17-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/216246/
State New
Headers show

Comments

Andreas Färber - Jan. 28, 2013, 4:18 p.m.
From: Igor Mammedov <imammedo@redhat.com>

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 target-i386/cpu.c |    2 ++
 1 Datei geändert, 2 Zeilen hinzugefügt(+)

Patch

diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index df974d7..b75ea9f 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -1395,6 +1395,8 @@  static int cpu_x86_parse_featurestr(x86_def_t *x86_cpu_def, char *features)
                     goto error;
                 }
                 if (numvalue < 0x80000000) {
+                    fprintf(stderr, "xlevel value shall always be >= 0x80000000"
+                            ", fixup will be removed in future versions\n");
                     numvalue += 0x80000000;
                 }
                 x86_cpu_def->xlevel = numvalue;