From patchwork Tue Nov 7 12:24:27 2023 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: 741866 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp1587783wrr; Tue, 7 Nov 2023 04:27:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkjZnGlNv7OloveazDPZDV8rMAMyW5vLyjPsZC/GNkkpNuPUx9BOiRDBZmhoTIp7cvsLNQ X-Received: by 2002:a05:622a:10f:b0:417:f85b:5a5a with SMTP id u15-20020a05622a010f00b00417f85b5a5amr35480255qtw.5.1699360067641; Tue, 07 Nov 2023 04:27:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699360067; cv=none; d=google.com; s=arc-20160816; b=mYnFnO/x+kklQG8cfFIJSm5d6UzamAuXu4az/F3AYVlLdGf3MFPaqt5kf2U/lqYNXZ X1TZrU4HKSVMBHPRP1WNHR7gDP5aHfdnM9YrfWWAD9vydEdxyrBYdsABLUHFjzECXz/b eNet9aITJkeyYb83clS+JfVblTmBk1AMwJbtDws8liNwEaE3RI7BMrISsgqEysI3B1h6 OqqOhlGIE4SUZMpizQOJ6iV+Oz1jlLSaS0ziL2wtLDzki4NS5K3ZSSfxik49vrOslxgb C9cCXlbQlMQfJJwclqYRvxGYgEhllB10JPEWA4FIQM5QGr5RJITrhaCFgjPOgRTamaY+ xRaQ== 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=vwIwGURbiF//KmePmfvAI1hLU80w6lpRnRx+VzJZixg=; fh=zqCJK/GNKinD327RpwX+nzDujFsGQ+TAosBHb+QbdKo=; b=sf/5iK6Ay2ZlgdQodsRcrDrBE10L0wwm6n2wHJRW3SdKYgwUUdc0DzF2+2qvHErKYa OjcPZmAX4J7QEur8bVX0MN/6Uz0CpjnrfECt179sIQtTGLNpnZ6F3PQpe6+UiEbgoNHg w8MaIgPZ4ChNHSXSNywWTKwizhEqTt+iQN7e9q9cn9n+nGnT9kiLl2anBWGpS5gMUqBG 1wWNlsvW5Re8/bRR19TZIeWammnY5VpXMxYRAPbkIlkdhlACtABtuzs2RQmKOnQX6QS/ iK18YG6BZ8y9ztaO/HIj9d1lvO2+wge6zb7r+txfmir9kzQzwyjwlrdQvJ01W0yB8KGm zpuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IeYl6qcm; 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 l19-20020a05622a051300b0041981d1c65dsi6807874qtx.718.2023.11.07.04.27.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Nov 2023 04:27:47 -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=IeYl6qcm; 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 1r0L8w-0005R8-9t; Tue, 07 Nov 2023 07:25:18 -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 1r0L8s-0005MH-NZ for qemu-devel@nongnu.org; Tue, 07 Nov 2023 07:25:14 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r0L8e-0004gH-Hj for qemu-devel@nongnu.org; Tue, 07 Nov 2023 07:25:13 -0500 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-40907b82ab9so39130745e9.1 for ; Tue, 07 Nov 2023 04:24:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699359897; x=1699964697; 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=vwIwGURbiF//KmePmfvAI1hLU80w6lpRnRx+VzJZixg=; b=IeYl6qcmsiGdXJ3fA/WTi60MmAgpFTr4FccCKum2M6LxtBIec6ToYB6VeCFPeKB+8M n31PcXB0kwC8XU15ICxlh6oqqLLm63ApN97jW5r6LGJWo4rePYB7ylcOuaZMCNlkX562 P9OrAyruFZ19tK7eeOMXL0GdLTuNhq3R7Y2HG9lKxHURqQYVrq12egIyfREa0YLE2lwi yyv1R33ruKyVlZVRfg91QAn9BSFaq8nvhIJJMjyKogiS8iOk2f/nEffkeEYPJ1tjqucc jaAZei+Xuh6lKMuBze1gH4nqjU6ThR8yYlY12As8Ele0sVDpfMWks9IclGNhf561CmcP R7VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699359897; x=1699964697; 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=vwIwGURbiF//KmePmfvAI1hLU80w6lpRnRx+VzJZixg=; b=kl4sob2YPzPMI6bcS0jaL4Yz2qOwoXE4kK9iCCKc5EsfCymeP/wA8jrI99ESv8nDJe bnmOCMFIv2VvEkpoqqkzeDx2IQM0pibX2IYVUXHemBeWkJt5eaaiAObU27oaUo/5xDnq 4BbvFv6dG7h55FGKVBvOsqZDBMHlrLmaeJWQZD5zyclUDhUwkpsLJsDXtVGb0lmaf3h9 wOnEgsACtQMNapnEyE3CxUSEhg5RCKYyUrv05PeXYTCmm5vBRSbw7/fiBzeBWRz63Ogu uOoVx2t788MeY6mXJTXgCZpLe2v4xsLH9EJjqzYNTFE6gnB5pMmmCiwGSSPXTdKJpYzY /X9A== X-Gm-Message-State: AOJu0YxUPHWNIEfOQv8Bc0VzpyBbW+n950/d1tWc01Ref6ctCZVnLRx2 uZFJR72ApkA7D4mUZgaEcBm+qkKUldq3o08GXB4= X-Received: by 2002:a05:600c:2191:b0:407:4126:f71c with SMTP id e17-20020a05600c219100b004074126f71cmr2988795wme.6.1699359896987; Tue, 07 Nov 2023 04:24:56 -0800 (PST) Received: from m1x-phil.lan ([176.187.216.69]) by smtp.gmail.com with ESMTPSA id az34-20020a05600c602200b004076f522058sm15891852wmb.0.2023.11.07.04.24.55 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 07 Nov 2023 04:24:56 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, qemu-arm@nongnu.org, qemu-block@nongnu.org, qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, =?utf-8?q?Philippe_Mathieu-Da?= =?utf-8?q?ud=C3=A9?= , Richard Henderson , =?utf-8?q?C=C3=A9dric_Le_?= =?utf-8?q?Goater?= , Nicholas Piggin , Daniel Henrique Barboza Subject: [PULL 37/75] target/ppc: Move ppc_cpu_class_by_name() declaration to 'cpu.h' Date: Tue, 7 Nov 2023 13:24:27 +0100 Message-ID: <20231107122442.58674-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231107122442.58674-1-philmd@linaro.org> References: <20231107122442.58674-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=philmd@linaro.org; helo=mail-wm1-x330.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 ppc_cpu_class_by_name() is only called in target/ppc/, no need to expose outside (in particular to hw/). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Cédric Le Goater Message-Id: <20231013125630.95116-4-philmd@linaro.org> --- target/ppc/cpu-qom.h | 2 -- target/ppc/cpu.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/target/ppc/cpu-qom.h b/target/ppc/cpu-qom.h index f681bfb4a6..0b8dfa5fee 100644 --- a/target/ppc/cpu-qom.h +++ b/target/ppc/cpu-qom.h @@ -36,8 +36,6 @@ OBJECT_DECLARE_CPU_TYPE(PowerPCCPU, PowerPCCPUClass, POWERPC_CPU) #define TYPE_HOST_POWERPC_CPU POWERPC_CPU_TYPE_NAME("host") -ObjectClass *ppc_cpu_class_by_name(const char *name); - typedef struct CPUArchState CPUPPCState; typedef struct ppc_tb_t ppc_tb_t; typedef struct ppc_dcr_t ppc_dcr_t; diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index 02619e5d54..f3ddfd7a26 100644 --- a/target/ppc/cpu.h +++ b/target/ppc/cpu.h @@ -1342,6 +1342,7 @@ struct ArchCPU { }; +ObjectClass *ppc_cpu_class_by_name(const char *name); PowerPCCPUClass *ppc_cpu_class_by_pvr(uint32_t pvr); PowerPCCPUClass *ppc_cpu_class_by_pvr_mask(uint32_t pvr); PowerPCCPUClass *ppc_cpu_get_family_class(PowerPCCPUClass *pcc);