Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1rNug8-0003ST-T9 for mharc-qemu-trivial@gnu.org; Thu, 11 Jan 2024 08:01:00 -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 1rNug1-0003Iy-Uv for qemu-trivial@nongnu.org; Thu, 11 Jan 2024 08:00:58 -0500 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNufw-0002uf-Dr for qemu-trivial@nongnu.org; Thu, 11 Jan 2024 08:00:51 -0500 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1d4ab4e65aeso40546205ad.0 for ; Thu, 11 Jan 2024 05:00:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1704978043; x=1705582843; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rFg1dNzVPnTCsOdeKSTg9W97fq3ju3xEU4cGnUvmmQY=; b=pX1jYTeIIa99KP9XtBtGyCp+iqD0j12ZESCQ5cVtvv3yvVFe5Oa6QJJxRuiGSWXq46 Ppj75JNvARsp5d9PcrpLb5C9+E5dgW322B1uw7Q1mEAA4SDzaBLR/NtHFdxlc/Xn46V7 q92Ecii0qO02eJdis6VpWlffGdf4EmGw94pAjKIZhEwtMIcwzj5tbz0xuQOtf5AhVGZC XWURLDaNlyR0s7c1mCT/dmBNLjWLhAQpz5jiUejtQA/AGy67i8imDc/wk2+ltXQVSyvq DKSFCD0Eb+iu/+3cERERSxEHtNyS4SDErWzQtZmYaZxq5cYlIc1LdbmptlxDYS+yXNjD aX1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704978043; x=1705582843; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rFg1dNzVPnTCsOdeKSTg9W97fq3ju3xEU4cGnUvmmQY=; b=imNoCqPYqRniPa1qU3FxJJmxbUYDVxVwPXvyYPARgZRozulDzqlOtEJkgnnSABLzw6 etSw6vglZVF4LJOfq2ItSxM3eEcDneX2wjecT4v96Fuj3OCG64cuARo0YuKVO72qOfI2 Q/YIVdnXoZ1FQhosbb348datMO2hXn75YaCFQ/rP/GV9fbaOkUFHYC6zhsXrhFVe6umF 5Hw1TaEwwNSEg0Hp7N/ywAEcAg2nUQz9RiKSar6cyTMPzO4B2z6RmoGQ2f2xSKWp3/AX kMsIA/3AzdC7ntumz+Vh67Y0ogQe2JiQGOHjGWjMKR5/D+xmnSCmXgwtlA9CHX/rIZIr tJ5Q== X-Gm-Message-State: AOJu0YxPW1ykffGwVYwkPbSnFPdr2OCN9EngFo+s/Um4/vLy4vmmnQaE 2++oAoitxKNfUIRa/UoM+Ei052qW8J8Uaw== X-Google-Smtp-Source: AGHT+IHKq5uz9HJ7tGNRly4fQPUPZks7QHK7eRejUxuKSvk+CAZt0w+2McbJtV6c1U6lMxiSVend0g== X-Received: by 2002:a17:902:c40d:b0:1d0:acd4:e711 with SMTP id k13-20020a170902c40d00b001d0acd4e711mr1098588plk.15.1704978043272; Thu, 11 Jan 2024 05:00:43 -0800 (PST) Received: from [192.168.68.110] ([152.234.123.64]) by smtp.gmail.com with ESMTPSA id g11-20020a170902c98b00b001d4c97a2adcsm1115031plc.108.2024.01.11.05.00.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jan 2024 05:00:42 -0800 (PST) Message-ID: Date: Thu, 11 Jan 2024 10:00:38 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/5] hw/core/cpu: Rename cpu_class_init() to include 'common' Content-Language: en-US To: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , 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 References: <20240111120221.35072-1-philmd@linaro.org> <20240111120221.35072-3-philmd@linaro.org> From: Daniel Henrique Barboza In-Reply-To: <20240111120221.35072-3-philmd@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=dbarboza@ventanamicro.com; helo=mail-pl1-x632.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-trivial@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2024 13:00:58 -0000 On 1/11/24 09:02, Philippe Mathieu-Daudé wrote: > 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 > 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)