From patchwork Tue Jan 3 18:16:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 638728 Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp1390855pvb; Tue, 3 Jan 2023 10:18:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXvRrJD5pYyLerWqZuNmlDGKlqQSqKaoR1IkDc6uF22rCKzv5ccvXx8bSodMWW2e+1Jo0rZX X-Received: by 2002:a05:622a:124b:b0:3ab:7bb3:4707 with SMTP id z11-20020a05622a124b00b003ab7bb34707mr45710734qtx.64.1672769931843; Tue, 03 Jan 2023 10:18:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672769931; cv=none; d=google.com; s=arc-20160816; b=SVMawyA8XMzki+DsmooSAzoCtdJmYZ7Np7js37VlY4Iv4Cx9EoxJAynsRHaTpJOoas coA+PZpA00O4dc9MZ/Na2bNz8I5GZ/oKkWaYBpTGiuiXyURLNpHXQItz6UD/h5xDiqeY qr9eC52wa5ML0DP8rPrOjadvoJCS1+pcSTZi8ZyNWR4nQfFUPMkKVZ+j/N0ENeebLOUF ClTirzwnRT2gwzwbz1dm3ZSVzWX1ziFm4ejKlsbGf5dJtLTw7JemqVkLTQ5xHulqsWrU WDs7cXUumcHjnPGZVDYG2QU4YP69Srgnvz+Y5CzKkRXmh8bCwm0K7QIuHFccF2Pg+svR eFDw== 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=HqfB1rYBt/JJ41xGurvUZv7qvN+1zDd4tBuTAwoD6lU=; b=a5t393YIyXE/Z9H59gLF0iZhedjdkNZ9DO+0NXjgFp8jbh0SuSpciIuepRXwKCJyGL vwwIMwGG4a+M5RMRHLGk7Xcb5shUHSVeo3AA/HqFmXTJH2eQhTpxfSYlpOT4r+AgJhK7 wz5GwhsQITOoltTk/uehEvRzun9sHsDsUuNFXZrM0u9QwNuwzMh40DdTzsJr4kSIolzG ZpPoS4A+MC8vr/sLilXU7H4xx+InjjqHpuhw8/XzB5fR/1iF75f92xhwHzcMSUjvFltP 36zGxYbrWEafzJ/B+EcjJMhsjmFHlxk+cTmMI88ZrJiLOPGV/xyH0VFo9xrxjdJTy120 8k/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zs4hdB3a; 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 z13-20020a05622a124d00b003a80ecd960csi16429562qtx.450.2023.01.03.10.18.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jan 2023 10:18:51 -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=zs4hdB3a; 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 1pClrX-0008Sl-BO; Tue, 03 Jan 2023 13:18:11 -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 1pClqU-0008G3-Rw for qemu-devel@nongnu.org; Tue, 03 Jan 2023 13:17:22 -0500 Received: from mail-yw1-x1135.google.com ([2607:f8b0:4864:20::1135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pClqT-00058C-7W for qemu-devel@nongnu.org; Tue, 03 Jan 2023 13:17:06 -0500 Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-466c5fb1c39so435115537b3.10 for ; Tue, 03 Jan 2023 10:17:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=HqfB1rYBt/JJ41xGurvUZv7qvN+1zDd4tBuTAwoD6lU=; b=zs4hdB3aSZm8LzCLXbA6Sy8Uf8FVVVBtqTNGp3VVazoS9u0699s3XU0BdCxhOqLwBU yspbF9lpf/HYTnvJ9RBF15TvytUGwCoQmZ7RWz2qMmHEoqA8FrB1jC3YGf6j7S0SfoIg Qoz6e7CeWKZ3b7spH6gl/w9hUvxoKI4Bj9GT2pvVzCQQ11gMFJit/OZiMQkkgKK2NKo0 8NJ5TVI6LwLZuqufIKfESq1GxzYVR8RXJmmvBIlwv43OWYYMUPui+n26rNYbN+db2kKC QYDv42X33J54/EKrF5B7tWfG6I2aL5yN1I+nwQJUkRPzNPJ4kMo9yfnCN2sBgcAKzDcl kn4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=HqfB1rYBt/JJ41xGurvUZv7qvN+1zDd4tBuTAwoD6lU=; b=0Ndkl0SWkMwoCvCiTz9ZKZO67Nntb0n+GPntqdQ3jePLSJ2f95CkOWcP/2iDvwllH1 t63qG71apgmkrd/3QqXe5pmgimxiFYm7weIh2avzyfVwIqGU0NxBUSJSFjwTVoVIJ1Or Y5b4h5YPE84VdupBdMEL1S71MZU0iOeXxBhoUbDkL2jAx8XSUfYrDtnfxO3J+g2Qg/OL ErJyKYy/oe8TNhq9E9qU0oUF3ckAI1Wm/OvyjT72iBhmmN5BE0TgJz+IPJpIIVxKSpXO mzscScvzAs0QN2Cs4ce//ljsrNV/VDZtnYOotMqZyjZpZxEgJ6PO/aM9y2ihB0y2+GZt sjWQ== X-Gm-Message-State: AFqh2koaZHalrSvZj4Bica9GCEryHmzPusTDZch/SAd4pwb1HWoOfTXz HSDXKsr45Gi+1kl5lKlAiPbBmuCfE0Ri89lQpS4= X-Received: by 2002:a81:6ac1:0:b0:4ad:5c08:7e6a with SMTP id f184-20020a816ac1000000b004ad5c087e6amr4071306ywc.39.1672769823506; Tue, 03 Jan 2023 10:17:03 -0800 (PST) Received: from stoup.. ([2607:fb90:8060:51a2:184b:6e49:c396:be2]) by smtp.gmail.com with ESMTPSA id v2-20020a05620a440200b006fed2788751sm23042354qkp.76.2023.01.03.10.17.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 10:17:03 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, berrange@redhat.com, eduardo@habkost.net, armbru@redhat.com, ajones@ventanamicro.com, alex.bennee@linaro.org Subject: [RFC PATCH 04/40] target/arm: Remove aarch64_cpu_finalizefn Date: Tue, 3 Jan 2023 10:16:10 -0800 Message-Id: <20230103181646.55711-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230103181646.55711-1-richard.henderson@linaro.org> References: <20230103181646.55711-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1135; envelope-from=richard.henderson@linaro.org; helo=mail-yw1-x1135.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 autolearn=ham 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 If the instance_finalize hook is NULL, the hook is not called. There is no need to install an empty function. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- target/arm/cpu64.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 2cf2ca4ce5..611b233d23 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -1351,10 +1351,6 @@ static void aarch64_cpu_set_aarch64(Object *obj, bool value, Error **errp) } } -static void aarch64_cpu_finalizefn(Object *obj) -{ -} - static gchar *aarch64_gdb_arch_name(CPUState *cs) { return g_strdup("aarch64"); @@ -1412,7 +1408,6 @@ static const TypeInfo aarch64_cpu_type_info = { .name = TYPE_AARCH64_CPU, .parent = TYPE_ARM_CPU, .instance_size = sizeof(ARMCPU), - .instance_finalize = aarch64_cpu_finalizefn, .abstract = true, .class_size = sizeof(AArch64CPUClass), .class_init = aarch64_cpu_class_init,