From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 84505C47DAF for ; Fri, 19 Jan 2024 11:42:45 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQnBR-0005Bz-K6; Fri, 19 Jan 2024 06:37:14 -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 1rQnBI-0004yk-8R for qemu-riscv@nongnu.org; Fri, 19 Jan 2024 06:37:05 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQnBG-0002vU-Jk for qemu-riscv@nongnu.org; Fri, 19 Jan 2024 06:37:03 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40e775695c6so5908235e9.3 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=LMgnNuXNUes88jq6WZnT0nsuYzKo1fgBp6ewEBUrcTMNYiReIuP9Pw1rgD0tjjxoxF 9dey2F+9t+/Heqm8MaTul56YnJwJ7gK4IF0jua01yft+CKmCDt6cd4VCafboFjrw5hNg vmLIUzwgRZHlOG5YS/fNYpiTKIqQE9GBjeqhwN1dlmhwZ42VKBkyKPXw+wi6ezUDkkaj gyXlceVEPqIyxrql1u36BmnU+SKHhzuCNjcR0of3E7v3qVU2yXdyMGYemI38/uIIETST OTQ/vezQLHaTu9K2/A/fOm+1VDj+H2Zks8O2yazbXF1FuXY8PjV4VGWtm5HDfjeB15Wy XsnA== X-Gm-Message-State: AOJu0YyWgIb56qRBi0WjMlU5XoLjMRu1AExbq8KAc470QO9SQi8kBB4z 47gr4VCLP+U2nIg8hcJ/NMRHLZfS4K3RXrOf5O5DdhwkjdtJxmaGBa8jfS1lg+26YFQwRY1L8bi hmMidNQ== X-Google-Smtp-Source: AGHT+IFPF3UNRq7EgXJo91GmEHKkWUp6AJYbQAyWvtkr+hkKZEOlatPzTGjBB9Ou6/BuIrFcX6H3BQ== 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=20Mathieu-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=20Mathieu-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@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-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.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) -- 2.41.0