From nobody Sat Sep 21 07:54:33 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1704974753; cv=none; d=zohomail.com; s=zohoarc; b=WU393tdA21QBq5UssW4dy37RzmpgjaPanh4dEDlZM4RO8kdqklZUL3brK4QmXPbQxq4ucak+NnhKuT/YLk3eNy+oSeDfInNAOo5ZlWuL7ZR82l6RksO14MWMrRX00Yllk3IZhb/9FKclHSTeZGHdZjPskT4a2dXnF7wU1WS4DH0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1704974753; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=kbCxYAXnaPA+cdBawT/EluO8Fm76t17YXM33Yu5GMIw=; b=W2an3j2l900DbDnrrbA1W1g3STANDJmxPXkQ3FYWdSlhheQK7TAFPCXRCZZR8p8CeOLxgMAMup4TFwuorp1OGeY15qhUMK3s6BRPIdBiSGurMtZRry2miY9fyBwKYWo+Ng5W4KMVIDp2nYNEcMYfahUdNbIr/D4eLEDPX22Ks/g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1704974753128539.4269176703735; Thu, 11 Jan 2024 04:05:53 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNtmx-0003Kp-P8; Thu, 11 Jan 2024 07:03:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNtm9-0002uC-Go for qemu-devel@nongnu.org; Thu, 11 Jan 2024 07:03:10 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNtlz-0007KH-D4 for qemu-devel@nongnu.org; Thu, 11 Jan 2024 07:03:08 -0500 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-3368b9bbeb4so4933022f8f.2 for ; Thu, 11 Jan 2024 04:02:40 -0800 (PST) Received: from m1x-phil.lan (vau06-h02-176-184-43-236.dsl.sta.abo.bbox.fr. [176.184.43.236]) by smtp.gmail.com with ESMTPSA id e16-20020a5d65d0000000b003365951cef9sm1061169wrw.55.2024.01.11.04.02.36 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 11 Jan 2024 04:02:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704974559; x=1705579359; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kbCxYAXnaPA+cdBawT/EluO8Fm76t17YXM33Yu5GMIw=; b=b+SRBAOgNj8xyn4b4laAHQnbANkNxH6ajSdjXflVW5inpprEpmJlFtPMEt17/oY2s0 K6bbNa5U8OpKA17OPVWm7t1nGq9mMd4JN3DfZwpOE6GdPocnLMPB+jtGy4ew18W+2Weh 1VZ0h2dS4hFcAOED0vzcOFGs2TEp9WOobpfzDfzG4Ng4f2APPwskCaGzwmxoQZOGhI+e 2ZSiIcxHy2162QVIouhMFScIce2OIgViEFlG3teTeKnHZmxHL/R8cVK39Ppbb5F6X7eh tbhSM8ccIAhrgNG2qK1Y6ZUL1gKRTm1gLr55lYTnB/r4CrXuZYqxR5P60ECtjsm8AJoE DcVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704974559; x=1705579359; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kbCxYAXnaPA+cdBawT/EluO8Fm76t17YXM33Yu5GMIw=; b=KJ6z3TUMZIlQ7NXxxZETV4t2dxpvLt8vdxdhYwR6cuql4yU2ZySNTMXLrNvbpFfKbh AzSaM94Bdi/Dt+izOfFGW41OvUTZlvuHZA5ehgttEML/6cGgFWQQfeuNnoorMrG6uSw0 O1nulq0wJkvIUFt3evTa23Rde93R2eqvb5oHWw2cv8vTZl0QL9wFAgxpcgNLW1QuPouW wVWsyruRIqxoLOX8WmQmXskD67Ulu8W64Sv3eGuMxbK+UVgL8Q7WAsGK9hk2sygEp9GZ ewb1qNWunkmIFuzRw87xN6SS2YCb46IYaC7B6YYXTUGUpKQtpTL4gQ3YNNNHdH/y6bmg jyCg== X-Gm-Message-State: AOJu0YzS1O9N9ZDF/5dUtxwxlEa01sT1trZY650i85WFqC8S/Z5JDoaf 7WexVcU4Y62hRgtenjMDFFZqNHHkd9PGn3Q7kHQ7yX786Xj1yw== X-Google-Smtp-Source: AGHT+IFi8ZAqXwBB+XquvDhK61hjPKAOzIdwxhqJUxp6aXpwxrV48/CZzjIuV9adAouObPtk84HeUA== X-Received: by 2002:adf:f5cc:0:b0:336:62f7:720f with SMTP id k12-20020adff5cc000000b0033662f7720fmr297987wrp.160.1704974558996; Thu, 11 Jan 2024 04:02:38 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Weiwei Li , Alistair Francis , qemu-s390x@nongnu.org, Michael Tokarev , David Hildenbrand , Christian Borntraeger , qemu-riscv@nongnu.org, Palmer Dabbelt , Bin Meng , qemu-trivial@nongnu.org, Halil Pasic , Paolo Bonzini , Ilya Leoshkevich , Eduardo Habkost , Laurent Vivier , Liu Zhiwei , Eric Farman , Thomas Huth , Daniel Henrique Barboza , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 2/5] hw/core/cpu: Rename cpu_class_init() to include 'common' Date: Thu, 11 Jan 2024 13:02:18 +0100 Message-ID: <20240111120221.35072-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240111120221.35072-1-philmd@linaro.org> References: <20240111120221.35072-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=philmd@linaro.org; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1704974755234100003 cpu_class_init() is common, so rename it as cpu_common_class_init() to ease navigating the code. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Daniel Henrique Barboza --- hw/core/cpu-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/core/cpu-common.c b/hw/core/cpu-common.c index 3ccfe882e2..67db07741d 100644 --- a/hw/core/cpu-common.c +++ b/hw/core/cpu-common.c @@ -273,7 +273,7 @@ static int64_t cpu_common_get_arch_id(CPUState *cpu) return cpu->cpu_index; } =20 -static void cpu_class_init(ObjectClass *klass, void *data) +static void cpu_common_class_init(ObjectClass *klass, void *data) { DeviceClass *dc =3D DEVICE_CLASS(klass); ResettableClass *rc =3D RESETTABLE_CLASS(klass); @@ -304,7 +304,7 @@ static const TypeInfo cpu_type_info =3D { .instance_finalize =3D cpu_common_finalize, .abstract =3D true, .class_size =3D sizeof(CPUClass), - .class_init =3D cpu_class_init, + .class_init =3D cpu_common_class_init, }; =20 static void cpu_register_types(void) --=20 2.41.0