From patchwork Thu Dec 27 14:59:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Mammedov X-Patchwork-Id: 208329 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D717B2C0097 for ; Fri, 28 Dec 2012 02:46:53 +1100 (EST) Received: from localhost ([::1]:53063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToFfY-0000Fy-2e for incoming@patchwork.ozlabs.org; Thu, 27 Dec 2012 10:46:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToExV-0003D9-Dx for qemu-devel@nongnu.org; Thu, 27 Dec 2012 10:01:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ToExN-0007Zj-BZ for qemu-devel@nongnu.org; Thu, 27 Dec 2012 10:01:21 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToExN-0007Ze-4B for qemu-devel@nongnu.org; Thu, 27 Dec 2012 10:01:13 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qBRF1BDx017216 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 27 Dec 2012 10:01:12 -0500 Received: from dell-pet610-01.lab.eng.brq.redhat.com (dell-pet610-01.lab.eng.brq.redhat.com [10.34.42.20]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qBRF0Ifk019125; Thu, 27 Dec 2012 10:01:10 -0500 From: Igor Mammedov To: qemu-devel@nongnu.org Date: Thu, 27 Dec 2012 15:59:34 +0100 Message-Id: <1356620376-23501-19-git-send-email-imammedo@redhat.com> In-Reply-To: <1356620376-23501-1-git-send-email-imammedo@redhat.com> References: <1356620376-23501-1-git-send-email-imammedo@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: ehabkost@redhat.com, afaerber@suse.de Subject: [Qemu-devel] [PATCH 18/20] target-i386: set custom 'stepping' without intermediate x86_def_t X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost --- target-i386/cpu.c | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index aab5f6f..3ee4c65 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1311,13 +1311,7 @@ static int cpu_x86_parse_featurestr(x86_def_t *x86_cpu_def, char *features, } x86_cpu_def->model = numvalue; } else if (!strcmp(featurestr, "stepping")) { - char *err; - numvalue = strtoul(val, &err, 0); - if (!*val || *err || numvalue > 0xf) { - fprintf(stderr, "bad numerical value %s\n", val); - goto error; - } - x86_cpu_def->stepping = numvalue ; + qdict_put(*props, featurestr, qstring_from_str(val)); } else if (!strcmp(featurestr, "level")) { qdict_put(*props, featurestr, qstring_from_str(val)); } else if (!strcmp(featurestr, "xlevel")) {