From nobody Wed Nov 5 10:58:06 2025 Return-Path: qemu-devel-bounces+famz=redhat.com@nongnu.org Received: from zmta04.collab.prod.int.phx2.redhat.com (LHLO zmta04.collab.prod.int.phx2.redhat.com) (10.5.81.11) by zmail26.collab.prod.int.phx2.redhat.com with LMTP; Mon, 4 Sep 2017 10:06:49 -0400 (EDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by zmta04.collab.prod.int.phx2.redhat.com (Postfix) with ESMTP id 2BCC0D09BC for ; Mon, 4 Sep 2017 10:06:49 -0400 (EDT) Received: by smtp.corp.redhat.com (Postfix) id 2838711CC13; Mon, 4 Sep 2017 14:06:49 +0000 (UTC) Delivered-To: famz@redhat.com Received: from mx1.redhat.com (ext-mx10.extmail.prod.ext.phx2.redhat.com [10.5.110.39]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 208576F127 for ; Mon, 4 Sep 2017 14:06:46 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2DAC94D4B7 for ; Mon, 4 Sep 2017 14:06:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 2DAC94D4B7 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=qemu-devel-bounces+famz=redhat.com@nongnu.org DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 2DAC94D4B7 Received: from localhost ([::1]:44939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dos1U-0007Lk-D1 for famz@redhat.com; Mon, 04 Sep 2017 10:06:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dorwG-0003fa-MO for qemu-devel@nongnu.org; Mon, 04 Sep 2017 10:01:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dorwB-0003x3-HH for qemu-devel@nongnu.org; Mon, 04 Sep 2017 10:01:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33270) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dorwB-0003vm-Bm for qemu-devel@nongnu.org; Mon, 04 Sep 2017 10:01:15 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 57D86AC2E9; Mon, 4 Sep 2017 14:01:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 57D86AC2E9 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=imammedo@redhat.com Received: from dell-r430-03.lab.eng.brq.redhat.com (dell-r430-03.lab.eng.brq.redhat.com [10.34.112.60]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5C448820A2; Mon, 4 Sep 2017 14:01:13 +0000 (UTC) From: Igor Mammedov To: qemu-devel@nongnu.org Date: Mon, 4 Sep 2017 16:00:59 +0200 Message-Id: <1504533662-198084-4-git-send-email-imammedo@redhat.com> In-Reply-To: <1504533662-198084-1-git-send-email-imammedo@redhat.com> References: <1504533662-198084-1-git-send-email-imammedo@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 04 Sep 2017 14:01:14 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 3/6] cpu: rename cpu_parse_features() to cpu_parse_cpu_model() 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: Andrew Jones , Eduardo Habkost , Richard Henderson Errors-To: qemu-devel-bounces+famz=redhat.com@nongnu.org Sender: "Qemu-devel" X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 205 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 04 Sep 2017 14:06:45 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 04 Sep 2017 14:06:45 +0000 (UTC) for IP:'208.118.235.17' DOMAIN:'lists.gnu.org' HELO:'lists.gnu.org' FROM:'redhat.com@nongnu.org' RCPT:'' X-RedHat-Spam-Score: -5.02 (HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS) 208.118.235.17 lists.gnu.org 208.118.235.17 lists.gnu.org X-Scanned-By: MIMEDefang 2.78 on 10.5.110.39 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Content-Length: 1931 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" function not just parses features but also converts CPU model name to CPU type, rename it to reflect what it actualy does. Signed-off-by: Igor Mammedov --- include/qom/cpu.h | 4 ++-- qom/cpu.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/qom/cpu.h b/include/qom/cpu.h index 392ae75..a718daf 100644 --- a/include/qom/cpu.h +++ b/include/qom/cpu.h @@ -643,7 +643,7 @@ ObjectClass *cpu_class_by_name(const char *typename, co= nst char *cpu_model); CPUState *cpu_create(const char *typename); =20 /** - * cpu_parse_features: + * cpu_parse_cpu_model: * @typename: The CPU base type or CPU type. * @cpu_model: The model string including optional parameters. * @@ -652,7 +652,7 @@ CPUState *cpu_create(const char *typename); * Returns: type of CPU to create or prints error and terminates process * if an error occurred. */ -const char *cpu_parse_features(const char *typename, const char *cpu_model= ); +const char *cpu_parse_cpu_model(const char *typename, const char *cpu_mode= l); =20 /** * cpu_generic_init: diff --git a/qom/cpu.c b/qom/cpu.c index 307d638..199ad57 100644 --- a/qom/cpu.c +++ b/qom/cpu.c @@ -66,7 +66,7 @@ CPUState *cpu_create(const char *typename) return cpu; } =20 -const char *cpu_parse_features(const char *typename, const char *cpu_model) +const char *cpu_parse_cpu_model(const char *typename, const char *cpu_mode= l) { ObjectClass *oc; CPUClass *cc; @@ -99,7 +99,7 @@ CPUState *cpu_generic_init(const char *typename, const ch= ar *cpu_model) /* TODO: all callers of cpu_generic_init() need to be converted to * call cpu_parse_features() only once, before calling cpu_generic_ini= t(). */ - const char *cpu_type =3D cpu_parse_features(typename, cpu_model); + const char *cpu_type =3D cpu_parse_cpu_model(typename, cpu_model); =20 assert(cpu_type); return cpu_create(cpu_type); --=20 2.7.4