From patchwork Tue Oct 10 09:28:45 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: 731433 Delivered-To: patch@linaro.org Received: by 2002:a5d:574c:0:b0:31d:da82:a3b4 with SMTP id q12csp1640935wrw; Tue, 10 Oct 2023 02:31:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3kpxx3G+UbHXB0XVnl7dBCmAqmj65D8USUOGwXyy4merF+nCIiLwdEvYmdf2gvqnd75/t X-Received: by 2002:a05:622a:1913:b0:417:8f2e:4e2d with SMTP id w19-20020a05622a191300b004178f2e4e2dmr24943825qtc.31.1696930293510; Tue, 10 Oct 2023 02:31:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696930293; cv=none; d=google.com; s=arc-20160816; b=Zv9jg+2T9MAXjxNrgYlnvAsLf/HPPkKRvbgNBNGZHmzYJl7bHhP2HU7mdVzaxxoQpR xDke1ZLAHNUwj2WXQSjbpVd4pyOgzYSIjSO8W3vIWVgyeimFEr10aTntjY4W7FmYdAVX 1i/e5pZkO7EZonQvWg4Qsb+LQ+wvhIcKIO776OsLbF+ZJQHPH2A5N9D76fWcmfJ/1swE +zdGtn5/bsCpUuOcf7eEHEBOpIbNmQR5g4felMJMVmCuEQM7ggkEiXTBCbazSO4/92MA q3l8D3bz3G3Ry4mvhkDWDDTifar3FeS3Cxh23bkODe0ySHuCHVGQ1ISoGIx2t5YGro5/ eWiw== 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=1P+KsNPR279ILK4eCnAbqPNl6Wjvg7v5l/+zhWQrkdI=; fh=iupQBrmerAoZOw8v6swRnyYBx+6KhbF7AbBF1Jawaz4=; b=DI7L34qYCAByEL0ej0XxRc+dptb1Hh9NbOlD6KKkNDhFDto/IlfD7oomVeHCcGGXTN +cvh7wd0Ns1fSfBDtS5jSJxlPCDtcZHtcOHmc8k2TulYu3ybrBP4bk2J8bamgKoNgS/+ AsXIT9i7O5gmbWrVrWdJZUJvHrbuF0ChiXhZMXoaBFWqHQ2x5C1/UYAPOdBNDHRs/Jma WlWS6Fw+GZp4kNo+rzCTbPpZ6L/mjznv+FWpKkpkGf+uJlaldxOjwkoQZJ2VM68i1knJ k2Ynhu21pH2YjgpT05kzStOI4Qc5jFTYPSMfxnd4wqCcdurJhcjdCzMsOd857vl5vnTm omiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=POVjFEG8; 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 6-20020ac85906000000b004197196b0f0si7590166qty.617.2023.10.10.02.31.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Oct 2023 02:31:33 -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=POVjFEG8; 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 1qq93e-0008IX-60; Tue, 10 Oct 2023 05:29:42 -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 1qq93Y-0008CW-TU for qemu-devel@nongnu.org; Tue, 10 Oct 2023 05:29:36 -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 1qq93U-0007gi-7X for qemu-devel@nongnu.org; Tue, 10 Oct 2023 05:29:36 -0400 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5334f9a56f6so9333211a12.3 for ; Tue, 10 Oct 2023 02:29:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696930170; x=1697534970; 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=1P+KsNPR279ILK4eCnAbqPNl6Wjvg7v5l/+zhWQrkdI=; b=POVjFEG81Pu4SQoXX4bOJMsCHxlv9ivlP8xqs7iaMjwZtKZde9x3QQLWYfQg2uQJYz 0dFPPeAvJF0GR2C7jZqvXC/3LmS6hgMsh10f3IUBj0L/cTgucjudxdPBh1z/9Mc0znf/ w/LvbOKuhN4Q8CcnUaLmnfY4FD3jAzGdHbrxwD8QU04HOqkPMVd4Qe5o4DYrn7GenU5d BFcv8brMvXNmQCtkKsUCRft7rYvfvT4wJIHqODAsjPr6l7rK1922AXTf0+pvlLNxgE3p x+4uhX3L8P7Esdomwf4CMJt6VsL8oeHPzdDEMX7jbx+LYILo0Ddds0vyLgRk7OEueruL tB8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696930170; x=1697534970; 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=1P+KsNPR279ILK4eCnAbqPNl6Wjvg7v5l/+zhWQrkdI=; b=GffSgzIzHbSjH4qUilYa8cXncCnZojiKyYnwY3PKq5xH+DcvUUKY5aIN/arpqnr00t m9fo9DdVmGmVp2mXR5k70h10zs5xX43Aqpt5ismQ07FtZwAmldX/YwXmXk/HP5BmiDEy 3EMmMLXRhEf/bWYN81nrKSFv6Hpje3BC14+nptIlTa1PAYkMTpAkl8UL+RJpm1ExaNSS VvTJDW5npGIZ8qPNlcIMEP/ddmZCo0UfKhsB1QYLxG02dn3d7qecUzrU8WggjPPfXsDw en4trf+EIiJCta7G270VX0iCfm6gVZtoRMmS+oaswoyZkcMchbD1+SIYCOtwTXH4hTMi ZcvA== X-Gm-Message-State: AOJu0Yzih1Bh30Z1cg8/8nnDmuMArge867B65pbIvIjR1WsnZDJCFwKG 5rHaHd1iLUGw0GhXM0a8BR05xCHc6FSHoEEGICvWog== X-Received: by 2002:a17:907:1dd6:b0:9ba:108b:a36c with SMTP id og22-20020a1709071dd600b009ba108ba36cmr6495664ejc.2.1696930170318; Tue, 10 Oct 2023 02:29:30 -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 s10-20020a170906354a00b0099bd1ce18fesm8321907eja.10.2023.10.10.02.29.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 10 Oct 2023 02:29:29 -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 03/18] target/riscv: Remove CPU_RESOLVING_TYPE from 'cpu-qom.h' Date: Tue, 10 Oct 2023 11:28:45 +0200 Message-ID: <20231010092901.99189-4-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: LIU Zhiwei Reviewed-by: Richard Henderson --- target/riscv/cpu-qom.h | 1 - target/riscv/cpu.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/target/riscv/cpu-qom.h b/target/riscv/cpu-qom.h index 04af50983e..8cb67b84a4 100644 --- a/target/riscv/cpu-qom.h +++ b/target/riscv/cpu-qom.h @@ -27,7 +27,6 @@ #define RISCV_CPU_TYPE_SUFFIX "-" TYPE_RISCV_CPU #define RISCV_CPU_TYPE_NAME(name) (name RISCV_CPU_TYPE_SUFFIX) -#define CPU_RESOLVING_TYPE TYPE_RISCV_CPU #define TYPE_RISCV_CPU_ANY RISCV_CPU_TYPE_NAME("any") #define TYPE_RISCV_CPU_BASE32 RISCV_CPU_TYPE_NAME("rv32") diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index ef9cf21c0c..374b813f20 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -31,6 +31,8 @@ #include "qapi/qapi-types-common.h" #include "cpu-qom.h" +#define CPU_RESOLVING_TYPE TYPE_RISCV_CPU + #define TCG_GUEST_DEFAULT_MO 0 /*