Patchwork [14/20] target-i386: print deprecated warning if xlevel < 0x80000000

login
register
mail settings
Submitter Igor Mammedov
Date Dec. 28, 2012, 8:01 p.m.
Message ID <1356724895-24118-15-git-send-email-imammedo@redhat.com>
Download mbox | patch
Permalink /patch/208587/
State New
Headers show

Comments

Igor Mammedov - Dec. 28, 2012, 8:01 p.m.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
 target-i386/cpu.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index 00cb413..02ece1e 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -1335,6 +1335,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 deprecated in future versions\n");
                     numvalue += 0x80000000;
                 }
                 x86_cpu_def->xlevel = numvalue;