From 8ba8a69848f8b910207a4b57c68db9a7e92af578 Mon Sep 17 00:00:00 2001 From: Igor Mammedov Date: Mon, 21 Jan 2013 15:06:35 +0100 Subject: [PATCH] target-i386: Print deprecation warning if xlevel < 0x80000000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost Signed-off-by: Andreas Färber --- target-i386/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index df974d7ed..b75ea9fc8 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; -- 2.39.5