From patchwork Tue Jun 14 20:59:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 635583 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rThrj3t2Gz9t0w for ; Wed, 15 Jun 2016 07:01:09 +1000 (AEST) Received: from localhost ([::1]:38149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCvSN-0000xV-7S for incoming@patchwork.ozlabs.org; Tue, 14 Jun 2016 17:01:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCvQv-0008CC-PJ for qemu-devel@nongnu.org; Tue, 14 Jun 2016 16:59:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCvQt-0007j6-4D for qemu-devel@nongnu.org; Tue, 14 Jun 2016 16:59:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCvQs-0007j2-UL for qemu-devel@nongnu.org; Tue, 14 Jun 2016 16:59:35 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6084637E62; Tue, 14 Jun 2016 20:59:34 +0000 (UTC) Received: from localhost (vpn1-7-151.gru2.redhat.com [10.97.7.151]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u5EKxXBX003244; Tue, 14 Jun 2016 16:59:33 -0400 From: Eduardo Habkost To: Peter Maydell Date: Tue, 14 Jun 2016 17:59:08 -0300 Message-Id: <1465937948-548-11-git-send-email-ehabkost@redhat.com> In-Reply-To: <1465937948-548-1-git-send-email-ehabkost@redhat.com> References: <1465937948-548-1-git-send-email-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 14 Jun 2016 20:59:34 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PULL 10/10] target-i386: Print obsolete warnings if +-features are used X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Igor Mammedov , Richard Henderson , =?UTF-8?q?Andreas=20F=C3=A4rber?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Igor Mammedov Signed-off-by: Igor Mammedov [ehabkost: Changed to use error_report()] Signed-off-by: Eduardo Habkost --- target-i386/cpu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 3665fec..baa3783 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1980,9 +1980,15 @@ static void x86_cpu_parse_featurestr(CPUState *cs, char *features, /* Compatibility syntax: */ if (featurestr[0] == '+') { add_flagname_to_bitmaps(featurestr + 1, plus_features, &local_err); + error_report( + "'+%s' is obsolete and will be removed in future, use '%s=on'", + featurestr + 1, featurestr + 1); continue; } else if (featurestr[0] == '-') { add_flagname_to_bitmaps(featurestr + 1, minus_features, &local_err); + error_report( + "'-%s' is obsolete and will be removed in future, use '%s=off'", + featurestr + 1, featurestr + 1); continue; }