From patchwork Fri Jul 7 11:31:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Henrique Barboza X-Patchwork-Id: 700026 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp3821843wrs; Fri, 7 Jul 2023 04:39:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlG67iYrcYMlwK3GPeDEDG1boxJxc6ZBchnQnUe0b1pOR1rbo8Hu4wtydvtppsI/btwXGBcN X-Received: by 2002:a05:620a:45a1:b0:767:3771:f770 with SMTP id bp33-20020a05620a45a100b007673771f770mr4619466qkb.40.1688729980553; Fri, 07 Jul 2023 04:39:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688729980; cv=none; d=google.com; s=arc-20160816; b=FdoLS10o+6bz0cBIsDep7bVRKm2hscTtRwf1kmK26Eaqa0BfkkI9NDUxX57sYlbTS8 CJy5qAyXGGfrzqycOlOxMOobljUiIzlczfWijOq+RFe5wyLsSP1WDjlFybH6dEMGpkma uiYH27YBs3Pt4dZqakX6auY+HGTADR2bxID4DRlWbCaijpQwQu1KcTTW9RXdijbecKXd b6vnQX7Rk4yYiYcB+so3F+BjnKxWdRHMVGlqFF2YkoY2vsjZKrn9r6yh+5uXB3HDIjmU w6fZdKROaZM+VfuIRaic1mpfAQwoo+ZYgpQib5meqUlg0va6CZFp2qf6OUoqpx31f8XG lcvw== 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=WDKExs6NtxIsCQTLBz0+Bcsnjt4SIwcZ12J5QEQKJfE=; fh=52YY/OuLkLNjvSoAPE9Ire0sLQcF4l+B9WKlPNKG8ko=; b=xgfaCn3S6bY5JrwKRVNa8OYdevftwDAWneXdoZneJkJaebkSRCe+RpToiZkgcuemWP isuQKJzm7FsEGLktVN/DOTHgO4wJ7bCp0KmsYcmo5IGgOLiRPWcU7s5p8LH4fBTTAKqC 8pDoxJ+xvTaw5Poy0GpvPttTMBMuJWDRN4cd7koVCz48YGikIFuocRqzZhN+98HF/wwO 69Fnp/nMcBEaW0B0IaZ6y9RdpT5A9/kUGmhpyWdYubJCOiFdJehhMn4Q/lElPthgfaPe M+BnOnTwegNdkmXwrI+EhtccD1yCH3e3vJCuKidkeafEwrnQ3l3z2ovNif1ApZdbtmv5 iRbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=DsKv+nPR; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d18-20020a05620a167200b007621274eb5bsi2572712qko.177.2023.07.07.04.39.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jul 2023 04:39:40 -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=@gmail.com header.s=20221208 header.b=DsKv+nPR; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHjif-0007Sl-Kn; Fri, 07 Jul 2023 07:33:49 -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 1qHjie-0007IK-1D; Fri, 07 Jul 2023 07:33:48 -0400 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qHjiY-00072y-DK; Fri, 07 Jul 2023 07:33:47 -0400 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-6b7206f106cso1570111a34.1; Fri, 07 Jul 2023 04:33:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688729621; x=1691321621; 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=WDKExs6NtxIsCQTLBz0+Bcsnjt4SIwcZ12J5QEQKJfE=; b=DsKv+nPRfXaXnd5GB6U8m9uSFvC3Bqjl7RkV+6cw3dpsltuXQXORtBCyqGJpGKz/2y wXiZyCtOCs97Fwm1gbDMjF63qanMsDWXB7z1ME6OUJofcDV00IqtsDNCrxNBcNoCYzCS A02D1dTzioonljVzdLlXLxYKtr2zI/jhLHJIrXV7Bt2q2lUe3jA01Vz7kQmi6bSHnlFW G+fUH0kURZQVV+olcs2HD+2mkONWlGtbsEXowyXu0XIBbLbCnmK1MZbXDoTIwdLCvSje cuD/d8N1FfhE2u+zoY7TUc9hcBD3zwRO1KESOghZ4FzLbhFHRh/62Y/wc/r7UazH+fE7 J4Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688729621; x=1691321621; 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=WDKExs6NtxIsCQTLBz0+Bcsnjt4SIwcZ12J5QEQKJfE=; b=E8nuULl/ds6iDVrqjs8EU5BdWSm2rIc4xbFBZHLqpcpa9gEj2/xTk+uFN5yt4Wbp80 ut6wIOeQf+PV/ePLYY3NP1T5qu98x0PEBcTjrUYJ/5VNDV3ifa98/nvQJooCPI7nxMAa 8Zod3+pnBwsFzLaInXn9cM1xrZuO2Ewg6cVAFLql3LF4RIPfdez1aZS9ll+mSx45mtP9 /5Cz7NoNnPj4MzbBDdf9WlP67ERfD2Wf36QmzQBYwJhNSEBtGCDzdzWczvaaS2jfBrfC +2YsFmUwMI7hi6R9Tf9xMHvJG/mcYd9/tPbuidzvtS9MVwxTx8YhO1Vs6WmPXMngOQUx sl9w== X-Gm-Message-State: ABy/qLZ6UaeuA82yY/lMso/jW2dcbUtut4SA7XJ4/PdUwG/n5QrXTr34 CudMUHbKHIm9Qtxhg7fUyRGA6ZmUWAI= X-Received: by 2002:a05:6830:1d5b:b0:6b8:9a14:91f5 with SMTP id p27-20020a0568301d5b00b006b89a1491f5mr4971172oth.21.1688729620845; Fri, 07 Jul 2023 04:33:40 -0700 (PDT) Received: from grind.. ([2804:14c:f435:9162::1002]) by smtp.gmail.com with ESMTPSA id g17-20020a9d6c51000000b006b74b37f5e5sm1574859otq.20.2023.07.07.04.33.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jul 2023 04:33:40 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, danielhb413@gmail.com, peter.maydell@linaro.org, richard.henderson@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?C?= =?utf-8?q?=C3=A9dric_Le_Goater?= Subject: [PULL 55/60] target/ppc: Move CPU QOM definitions to cpu-qom.h Date: Fri, 7 Jul 2023 08:31:03 -0300 Message-ID: <20230707113108.7145-56-danielhb413@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230707113108.7145-1-danielhb413@gmail.com> References: <20230707113108.7145-1-danielhb413@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::336; envelope-from=danielhb413@gmail.com; helo=mail-ot1-x336.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01 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 From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Cédric Le Goater Message-ID: <20230627115124.19632-4-philmd@linaro.org> [dhb: keep cpu_list define in target/ppc/cpu.h] Signed-off-by: Daniel Henrique Barboza --- target/ppc/cpu-qom.h | 4 ++++ target/ppc/cpu.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target/ppc/cpu-qom.h b/target/ppc/cpu-qom.h index 9666f54f65..c2a66a90f7 100644 --- a/target/ppc/cpu-qom.h +++ b/target/ppc/cpu-qom.h @@ -31,6 +31,10 @@ OBJECT_DECLARE_CPU_TYPE(PowerPCCPU, PowerPCCPUClass, POWERPC_CPU) +#define POWERPC_CPU_TYPE_SUFFIX "-" TYPE_POWERPC_CPU +#define POWERPC_CPU_TYPE_NAME(model) model POWERPC_CPU_TYPE_SUFFIX +#define CPU_RESOLVING_TYPE TYPE_POWERPC_CPU + ObjectClass *ppc_cpu_class_by_name(const char *name); typedef struct CPUArchState CPUPPCState; diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index b269b0d090..25fac9577a 100644 --- a/target/ppc/cpu.h +++ b/target/ppc/cpu.h @@ -1471,10 +1471,6 @@ static inline uint64_t ppc_dump_gpr(CPUPPCState *env, int gprn) int ppc_dcr_read(ppc_dcr_t *dcr_env, int dcrn, uint32_t *valp); int ppc_dcr_write(ppc_dcr_t *dcr_env, int dcrn, uint32_t val); -#define POWERPC_CPU_TYPE_SUFFIX "-" TYPE_POWERPC_CPU -#define POWERPC_CPU_TYPE_NAME(model) model POWERPC_CPU_TYPE_SUFFIX -#define CPU_RESOLVING_TYPE TYPE_POWERPC_CPU - #define cpu_list ppc_cpu_list /* MMU modes definitions */