aboutsummaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2013-01-21 15:06:35 +0100
committerAndreas Färber <afaerber@suse.de>2013-01-27 14:34:27 +0100
commit8ba8a69848f8b910207a4b57c68db9a7e92af578 (patch)
tree16becd741022a4bfa35737a9d1e9f3e33043babf /target-i386
parent7fc9b714eb4877ca83ce8e437ec93d34fca0eb3b (diff)
target-i386: Print deprecation warning if xlevel < 0x80000000
Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index df974d7ede..b75ea9fc8f 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;