From patchwork Tue Oct 10 09:28:44 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: 731439 Delivered-To: patch@linaro.org Received: by 2002:a5d:574c:0:b0:31d:da82:a3b4 with SMTP id q12csp1641508wrw; Tue, 10 Oct 2023 02:32:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERy4StaCnxXA8UD2WyXCyY7cJklnbvtnF76dokqHVkjXf7DLVKZrLNpUA8MgfTZi5/IQBl X-Received: by 2002:a0c:f5cd:0:b0:658:50c1:b1d6 with SMTP id q13-20020a0cf5cd000000b0065850c1b1d6mr17011455qvm.1.1696930376452; Tue, 10 Oct 2023 02:32:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696930376; cv=none; d=google.com; s=arc-20160816; b=RgLaDl+2KgxI9dvqEW9WrDsCjq8XeZljw5eqPPZzMRLcjUsxYRBmY7EP1c0ra9m8H/ qNDO0CfeVaX0JlcUT4/xCNHX0Bap74PKUPSTee6e+ntwo/yf1hFjqSg3KXtn3IYwDo6M 7Zt3o6XfGiI4wbUs/hpUfmZkUMllczpvSnHaLOH+g6abRL9vwNJEEG5Wf11lJUf7yh15 sHmRfB4RTnhNgbGVfy4YMUZbjPHOuBhvV6IPhlTfxdhbyn/V0phcm8sGwgcfreiwl801 0H0ATGRKlWu7yR+n37KJbKO7X+BiNRk5XTpJ3OF2Kb6x8LlkS0Wql9TZrQPviAwYZBUp HYNA== 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=z/h9w6SijQxndRm+za3Ly8qK6pPEviCCn5/tSqn0iYo=; fh=iupQBrmerAoZOw8v6swRnyYBx+6KhbF7AbBF1Jawaz4=; b=dMpWPrgFG8iSXzAD+3iGvisB5YlwFNI/fWSMgvnSNjWJP+t+A1rGk4C1QeJ8o8/hVA AgAhRlB1/nCwHCKsgXy6ClBN8JcQdIo0wkPc+kn7v03g8KaP1pBurJFM0m7F8FpTxmXD iwPRN7WkoS/PZRQ61dToxJVbNLSs4UmxWus+QA9Vh1hGusjps6Hov+nNRcVpBFyIRSbd dce3tRXKS6aomIT7PMC7ZiXlYC/FiX2jcd3F9Q1YOlhEFV9xN6Oe37gGV1tk01GC+olC c2XvuAYqXSd7OdkGHCL9tk4r+/ed+nbqsxhf0zvmj9E8ksRZQPDhozZFs+HUqZwFSVyd CCCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tJz8Q6I0; 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 u11-20020a0c8dcb000000b006587311f7d6si7194338qvb.586.2023.10.10.02.32.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Oct 2023 02:32:56 -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=tJz8Q6I0; 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 1qq93T-000887-FR; Tue, 10 Oct 2023 05:29:31 -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 1qq93P-00085p-MK for qemu-devel@nongnu.org; Tue, 10 Oct 2023 05:29:28 -0400 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qq93M-0007fM-CY for qemu-devel@nongnu.org; Tue, 10 Oct 2023 05:29:27 -0400 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-533f193fc8dso9507727a12.2 for ; Tue, 10 Oct 2023 02:29:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696930162; x=1697534962; 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=z/h9w6SijQxndRm+za3Ly8qK6pPEviCCn5/tSqn0iYo=; b=tJz8Q6I0K8tDuHIQBbH0FB1OKuWSKyxIhcF+OAbynC/K/5uVKMCW1974zvY0MIbNAz yaUljvuTYRd+oAqE1wYqVy72Cv9P4dbrNpSQOHU3oxFNI9zKZ61UEZMTnkl87zw1wsA4 gZ8sBqNhn8JMzezqIMttXBMRmMX+P2FYdLFoZkMBbtG/Lncy9ulMUjyE0IsGRoUUzLCi CsjgjMTA4JZIyA3DJsQgsiiqloxPHRX1PKjTiDl4uSC+F+wY96p44eunN4JBYW+WZgII jSJe+3d5uV6YeaB3nBIuRbWg+W32n2Mo6KW4gkXP7r5q8gcz0MaZr4Y6cbqlU4osWkwM m7Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696930162; x=1697534962; 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=z/h9w6SijQxndRm+za3Ly8qK6pPEviCCn5/tSqn0iYo=; b=V16PrOBsBoFNUbe0p43X2hap6IrOiyEzmDvUn3w0MN2NkdNUMNGxhVF2sG0LK71r+8 KeYv5Qdir7euedCpm8MsEPmtaPcVhzd9d5vwv2+QJiN2AD8vOoJQyzV2SuSdo1zW5uki CdbtPEr+YfA8aU7KeY4j3CRy8hOp74yDm3ZBfYSP0iMosNmS4xblkbwFmEnDQi07oYhq aSJZETb/Oqv3LsX4QyOMjGqmgCP4xItDCecR0474IeNskuZlu31cSAXztvyRrkldZlB+ I/wWB3X3DmcB3e+IH7qEmjOfdSJ/wGi9cJ/sZjf47Nasonb+UoyfFsvLYnjM754trP54 1HLA== X-Gm-Message-State: AOJu0Yz+9pglD9nPJr7vIyHA6VCJWihOo0fKXvAfz1C8KykSbk7oK7Oi oeadoiOZrji9n1MGxUoMiCzgO6Vh9MMlwrrjKGg1iw== X-Received: by 2002:a05:6402:20c:b0:532:bc4d:9076 with SMTP id t12-20020a056402020c00b00532bc4d9076mr14272749edv.19.1696930162369; Tue, 10 Oct 2023 02:29:22 -0700 (PDT) Received: from m1x-phil.lan (aif79-h01-176-172-113-148.dsl.sta.abo.bbox.fr. [176.172.113.148]) by smtp.gmail.com with ESMTPSA id n19-20020a056402515300b0053495596f42sm7389833edd.30.2023.10.10.02.29.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 10 Oct 2023 02:29:22 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: David Hildenbrand , "Michael S. Tsirkin" , Song Gao , =?utf-8?q?C=C3=A9dric_Le_Goater?= , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Laurent Vivier , Bastian Koppelmann , qemu-arm@nongnu.org, Jiaxun Yang , Ilya Leoshkevich , Yoshinori Sato , Paolo Bonzini , Weiwei Li , Nicholas Piggin , qemu-riscv@nongnu.org, "Edgar E. Iglesias" , Bin Meng , Yanan Wang , Palmer Dabbelt , Alistair Francis , Aleksandar Rikalo , Daniel Henrique Barboza , Marek Vasut , Peter Maydell , qemu-ppc@nongnu.org, Michael Rolnik , Max Filippov , Mark Cave-Ayland , Laurent Vivier , Stafford Horne , Thomas Huth , Chris Wulff , Sergio Lopez , Xiaojuan Yang , Richard Henderson , Liu Zhiwei , Artyom Tarasenko , Daniel Henrique Barboza , Eduardo Habkost , Brian Cain , Marcel Apfelbaum , Aurelien Jarno , qemu-s390x@nongnu.org Subject: [PATCH 02/18] target/ppc: Remove CPU_RESOLVING_TYPE from 'cpu-qom.h' Date: Tue, 10 Oct 2023 11:28:44 +0200 Message-ID: <20231010092901.99189-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231010092901.99189-1-philmd@linaro.org> References: <20231010092901.99189-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=philmd@linaro.org; helo=mail-ed1-x532.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 CPU_RESOLVING_TYPE is a per-target definition, and is irrelevant for other targets. Move it to "cpu.h". Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/ppc/cpu-qom.h | 3 +-- target/ppc/cpu.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/target/ppc/cpu-qom.h b/target/ppc/cpu-qom.h index be33786bd8..41df51269b 100644 --- a/target/ppc/cpu-qom.h +++ b/target/ppc/cpu-qom.h @@ -1,5 +1,5 @@ /* - * QEMU PowerPC CPU + * QEMU PowerPC CPU QOM header (target agnostic) * * Copyright (c) 2012 SUSE LINUX Products GmbH * @@ -33,7 +33,6 @@ 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 #define TYPE_HOST_POWERPC_CPU POWERPC_CPU_TYPE_NAME("host") diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index 30392ebeee..492fdecaf3 100644 --- a/target/ppc/cpu.h +++ b/target/ppc/cpu.h @@ -27,6 +27,8 @@ #include "qom/object.h" #include "hw/registerfields.h" +#define CPU_RESOLVING_TYPE TYPE_POWERPC_CPU + #define TCG_GUEST_DEFAULT_MO 0 #define TARGET_PAGE_BITS_64K 16