From patchwork Fri Oct 13 12:56:26 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: 733198 Delivered-To: patch@linaro.org Received: by 2002:a5d:54d1:0:b0:31d:da82:a3b4 with SMTP id x17csp1448490wrv; Fri, 13 Oct 2023 05:57:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFtWevKtESVX6asc+WvKXfvtI/DV5YLTPBx3qZReaTyf6tM0WRQ8EhWxYo9POIF6w4S8Kp8 X-Received: by 2002:ac8:5e0d:0:b0:418:a364:c4ea with SMTP id h13-20020ac85e0d000000b00418a364c4eamr31379967qtx.30.1697201858359; Fri, 13 Oct 2023 05:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697201858; cv=none; d=google.com; s=arc-20160816; b=B06PHriJ4WxVZpDzfAhv0Vayra3NzJhKshweD81RhhRhLr5/XSeKsCln2IryB7XXVg /OMaFb7c9xYxyCAxJCQPmCz/57fwl/eavpNXSypwF5tdXlowF/BFr2s0yWjxxvzU+rlq Xi3AkLrhT6U+EUMcn8eeRHSB7n3CRkeYEFOYSc6zMs/QZTuuU+D1yogn4kZQ58HEF0M7 X6Ta9qN84pv+yku9gdhhxvOxRxWNFWaoGHeRpqLe74VOZ/qYSUe+76mWo/iLyppYcjJO I31lI6vUBqpm57dXtpdaOzOK8Q4EeVDj5ec71IUqcWu+SF7HhZ3AGADhhr258K1nmqYa aKgw== 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=wIq+NNnPEjjdwEwMuihsIXkhuw1xh2LZ59h0H7TW924=; fh=VA6j7lkwZBpc1StxpFljCA0aH/klDdhOAPrIIfLw9Rk=; b=qG9coTbxftf1SmZ3YdjDh4REqesDlYbphQbTJ8wbkX3vw3XHtkZul+EKLzm1fM9Ft3 5lye6h0vCVUCXWKJn6fdE9Fgm+qbDoSS0RtYJqKtj5Z57cN1jYof7cRN8VrFMqeiO28N tI6TIOqfda02sxrujhQshZ4h7baGMfdqKuqV9yOzkPJEzG6ERmHOSNnqD7OuLVXc12xr G6PjxBdqfigic/mtydAJURhBCa3tFZibUlxsO2GwWEDWQeqQAm+QsLnZO0BEsxp0dvQb 6tnsUlIP/evesebo3PLK87DCioZ6pY77zJiY24THmnVHmlQJxtsfhZcX4vZjs7Ih5fUP fUFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qpHZEqDD; 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 h17-20020ac87d51000000b004199212c359si1154227qtb.72.2023.10.13.05.57.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Oct 2023 05:57:38 -0700 (PDT) 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=qpHZEqDD; 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 1qrHiv-0003sS-UC; Fri, 13 Oct 2023 08:57:01 -0400 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 1qrHis-0003mM-2Y for qemu-devel@nongnu.org; Fri, 13 Oct 2023 08:56:58 -0400 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrHip-0002aD-1B for qemu-devel@nongnu.org; Fri, 13 Oct 2023 08:56:57 -0400 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-53dd752685fso3687360a12.3 for ; Fri, 13 Oct 2023 05:56:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697201813; x=1697806613; 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=wIq+NNnPEjjdwEwMuihsIXkhuw1xh2LZ59h0H7TW924=; b=qpHZEqDD8+sy8g+WKUBGBSCaGmY+eN9DpjF7YxSX89z6mp5VEYSiPn7YqY1HbxFTuz tao8UQ6IkaMk8q6Ubl8ddnoM/f04ivYKVHAFOIzckXG1R+fYmSckvWeOF4F7fWZswtYp r402UtyXYQ+M8wBkF/WByKgBGxJQWPSVIidTqoa6LRl3s7fYD3IwiX/LcmHmh2QKWjyc sVp0BNYD2cqXfL3gvzZy42EH31XtaZyLc/DqFhEyijvVTpOAgSdOxxpYS2PiO9QkVErr 4SH3DoDsLK49d/ybKnFwv1mMncZTnbFKbvI58luA4zui0qOonh9ZyO+8LGjaUzREy0Hb a6Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697201813; x=1697806613; 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=wIq+NNnPEjjdwEwMuihsIXkhuw1xh2LZ59h0H7TW924=; b=R/yXnn3ZRHlR/1qy/vT/QgP2p2lUJFCFG/Pai8nzft46udTsk+1rZ2NGzCoJVDdk3V WmqnuK5q0wd0feUT3MSC2l/JD+qVL1daZSF/vf5QjVka4/SANjfqo1YdgxQoE83diDFY ZxniuYgMU3Q5WZf3nW7mFt33iFN/UBVlqJ116Pi7ms8qpiTSgD0shhe6i8Xrqm1qryra bkCz1QN5gxV/QkfqXfbcFi4rVefxUGSFokQ+RT3R0iL06y/pOYFFC4hD1Xs7lM4Soi/V 2MclP7IX6IWAWwqn3xNsxr4249yekse556g+dykMM4/iONQ8RPgcA9Y5+ZsZoku7Al+R kXAw== X-Gm-Message-State: AOJu0YzncaL5yH7lQfpqwNBZWg0oM6d4JesERDKeBZxXGqpKcQSwvY61 ISQgGx9nr4JP2R73LD66Oe0LauKGvc//Sf8QJd0= X-Received: by 2002:a05:6402:518a:b0:53e:4a78:e281 with SMTP id q10-20020a056402518a00b0053e4a78e281mr1134348edd.27.1697201812921; Fri, 13 Oct 2023 05:56:52 -0700 (PDT) Received: from m1x-phil.lan ([176.172.118.168]) by smtp.gmail.com with ESMTPSA id g22-20020a50d0d6000000b0053e3d8f1d9fsm922774edf.67.2023.10.13.05.56.50 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 13 Oct 2023 05:56:52 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: David Gibson , qemu-ppc@nongnu.org, Nicholas Piggin , Harsh Prateek Bora , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Daniel Henrique Barboza , =?utf-8?q?Philippe_Mathieu?= =?utf-8?q?-Daud=C3=A9?= Subject: [PATCH 3/7] target/ppc: Move ppc_cpu_class_by_name() declaration to 'cpu.h' Date: Fri, 13 Oct 2023 14:56:26 +0200 Message-ID: <20231013125630.95116-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231013125630.95116-1-philmd@linaro.org> References: <20231013125630.95116-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=philmd@linaro.org; helo=mail-ed1-x530.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=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 --- 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 b86fd46d25..3dc92a852e 100644 --- a/target/ppc/cpu-qom.h +++ b/target/ppc/cpu-qom.h @@ -37,8 +37,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 30392ebeee..8bb66fbea4 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);