From patchwork Fri Jan 19 11:34:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 763928 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a08:0:b0:337:62d3:c6d5 with SMTP id m8csp399356wrq; Fri, 19 Jan 2024 03:42:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IFV+YqcFbMJ10QPXcF2tSQRnqG0O27hDQ2WQi4Ta/jjZ1vCD0TI2ocli9NEe0zvjwwu/RUY X-Received: by 2002:a05:6122:d99:b0:4b6:ce08:cc76 with SMTP id bc25-20020a0561220d9900b004b6ce08cc76mr1832566vkb.9.1705664578887; Fri, 19 Jan 2024 03:42:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705664578; cv=none; d=google.com; s=arc-20160816; b=dkVnRLU/qYzrhcgp4DS0lssWSJnDKVSLfiOEr+3rx//zQE9WA9ylyJRDQRzTvnIrbf wpFKyiYUV3lPhBjygBrvxThbO4Bqs1d8x+zZjmSMXXbqlLQcSBbe09zsANHT+Wlon7Vr PFzNZvhgl7zBVkZGu0Gdd0Wx2/SFWyRiv6QZCMnNoyBQ6NCHfVbPyKylg3lK2b6W0xWf PkHu78DsC32JV5baw41saX/TJFcYNIb//dYZ1OC5uMYuKVvDdQ9D1y740cxptYxZsjTQ +VunPixTBT1hO4GMJ8ll9mMqI8MygGOH+Yx4BDPC2Sxl9AEiAXATkza76nubTjmO24o9 CMyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=CZOOriEuiBAbNMMhhXm8QlidphHeh3aLspyqOz5Ajks=; fh=tLx+m0BWvCiM+lTZagO/5rmwTauxl8DHhQS+XJFibX4=; b=Acz3fbUxgusP56FJAXubbL/4p6T4lCn5HzMtR/OPZT1TUB24c7RU7Qem3on2YVEduZ gjVpwIaEe/LmKPmcCakurwtkkr5G+OZjpI1tv/WFr299UGLd9Pk3nbiGzV4tXIHGtwA4 b/TSpi7AxWA29InuwFZ8l/Vv3M6Mahur88D+qxtFymcdU5qBljS8i22SKjEflkqEl8sM HG0tS4ifqhJzTwfpx7w+4bbwYxjNk6hpDb1w1+6CTkYGOj+RxVr5XHhcNce0OsJLlUjn iFnrNVpkQNa4BIV7KNcsfp/8013wqABUMHuB+NZ4MWJrbimb8PQkLox4zrlL1N+afhl0 m+OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wR+AkuG9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x19-20020a0cb213000000b0067f483722c0si16655926qvd.208.2024.01.19.03.42.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jan 2024 03:42:58 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wR+AkuG9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQnBV-0005Lr-Nv; Fri, 19 Jan 2024 06:37:17 -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 1rQnBJ-0004ys-Ey for qemu-devel@nongnu.org; Fri, 19 Jan 2024 06:37:05 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQnBG-0002vd-W8 for qemu-devel@nongnu.org; Fri, 19 Jan 2024 06:37:05 -0500 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-40e8801221cso5971255e9.1 for ; Fri, 19 Jan 2024 03:37:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705664221; x=1706269021; 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=CZOOriEuiBAbNMMhhXm8QlidphHeh3aLspyqOz5Ajks=; b=wR+AkuG9qq/deD5sVWV25v+ofxzaTlM1ZAJ+OMqxn5eMF6GuvJpP7q38RDz0C8Gsdx MHVLFc/OQIs3aOwEXvwXgcZ3g3ewi4R0zF07OJfNsKjpMTel5XlcIpFu0Ew9/m0D/SpA YQisW3LdZWDByoQhPmgCsTS+3bsyG94O4pqyFcMrCKioMVoSXmVLpD0SPdPuhR5BT/wb oihLyzwOmBUkMae7AlglRuu9Jx9mhfRxy8COgvXhKGsDQbFwz2FK0gDpUkjyAPWfKCA0 z3AKT9Kw0MU9fh4t2pnZuTRT9RdXJZEp2SWhUhtTomPD7znEklSiHlNeFjNSuop+lCJn +CXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705664221; x=1706269021; 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=CZOOriEuiBAbNMMhhXm8QlidphHeh3aLspyqOz5Ajks=; b=I0pQX1huCvloJHCMvlZfUmxlbXG464uklojcUNwjbzHgUDgSxl26ANQsHpegEj3bSr 2opc42yw+nH0V7ll9zZQTQ2WtDYxZD2LkqVuivM5jvqb2o48ESrVE8zYrIwbAIWJbS4B VH2S0IA0Pxfglt8Q5PjXtTwtwp1KU/bn8UyXQYlP1jdSJBk/0O8uQz3vwu9OcVxLaQCA jzP/W2wcUtB9cNSV82P6P7vmgFJPDSw1QPSXtlJ/2jTwINFHDpguaHJ84GxYhNLv1Zv4 MYJ23OfLfLMvluhWwVnUQuh3YeJswhYg36aR2bIP7vWIrAw/XUZTZtmNh/BzMddeBoyk hSmw== X-Gm-Message-State: AOJu0YysIVU9bcpunWEAsUzwRah02TwYhEw6M+dQJecHbTbw1R4lykqD u+OhvBIPxd+fnxa68/b4h9xcvlEIO8A+s28bKXt6tLwAHgdDL3l1aBR13fxMcvQ0Bz/FEVTf5xp GBq+ilQ== X-Received: by 2002:a05:600c:654a:b0:40e:427d:4b02 with SMTP id dn10-20020a05600c654a00b0040e427d4b02mr1636546wmb.67.1705664221241; Fri, 19 Jan 2024 03:37:01 -0800 (PST) Received: from localhost.localdomain (91-163-26-170.subs.proxad.net. [91.163.26.170]) by smtp.gmail.com with ESMTPSA id jg1-20020a05600ca00100b0040d4e1393dcsm32251084wmb.20.2024.01.19.03.37.00 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 19 Jan 2024 03:37:00 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, qemu-block@nongnu.org, qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Daniel Henrique Barboza , Eduardo Habkost , Marcel Apfelbaum , Yanan Wang Subject: [PULL 25/36] hw/core/cpu: Rename cpu_class_init() to include 'common' Date: Fri, 19 Jan 2024 12:34:54 +0100 Message-ID: <20240119113507.31951-26-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240119113507.31951-1-philmd@linaro.org> References: <20240119113507.31951-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org cpu_class_init() is common, so rename it as cpu_common_class_init() to ease navigating the code. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Daniel Henrique Barboza Message-ID: <20240111120221.35072-3-philmd@linaro.org> --- 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; } -static void cpu_class_init(ObjectClass *klass, void *data) +static void cpu_common_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); ResettableClass *rc = RESETTABLE_CLASS(klass); @@ -304,7 +304,7 @@ static const TypeInfo cpu_type_info = { .instance_finalize = cpu_common_finalize, .abstract = true, .class_size = sizeof(CPUClass), - .class_init = cpu_class_init, + .class_init = cpu_common_class_init, }; static void cpu_register_types(void)