From patchwork Fri Sep 27 21:32:53 2024 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: 13814561 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F1A93CF6480 for ; Fri, 27 Sep 2024 21:33:46 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1suIaN-0007u8-QJ; Fri, 27 Sep 2024 17:33:11 -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 1suIaL-0007rz-Ni for qemu-devel@nongnu.org; Fri, 27 Sep 2024 17:33:09 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1suIaK-0002BQ-9r for qemu-devel@nongnu.org; Fri, 27 Sep 2024 17:33:09 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-37a413085cbso2568052f8f.1 for ; Fri, 27 Sep 2024 14:33:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727472786; x=1728077586; 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=I9zm+sBpkfOJThBc4nEo/SB2oeHmD37YPA9r+McQzdo=; b=Qra+TMPc/b0QyGOoz//7ETyjm0476XUcEtOJ/xJ9EgmlygBeQ97qvv/+IVs07ilzwZ nGedaF7rvPtKuRP6yM1UDLt1MjfKmU0t4C0BPWmM/iBvnXZWkcTxWrNDGCTxsdaKnvmp 3c1//UknS4BctewQYAJsMKxbZmnHK+aUtwQKm/pGQwlCHg4nHgeqZIlwvpn0lLdto86u lygx0Pwynhi0CI+ung1KE2k8VIXVHdk7Qs+TCREmCbO70mEFYGfz4JQkj1Vt/YlyHpA4 dEZhaRaAFkK9j3/kucc0SP6u1cGecC/znPJBp3RFPn/asREc3CxLYiTyajDvJTbBXPYP XQcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727472786; x=1728077586; 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=I9zm+sBpkfOJThBc4nEo/SB2oeHmD37YPA9r+McQzdo=; b=tgf72xFwEjS3PPEbHtN8AjaJpmELVH+a2pd/8xW2L5C/RadpNG9KLoOaG+/mXd9B0x 7ahOHOftC0v7OwmuVhFrIVQstugxGEXn+G8B7MNH3GtYoTlTBIZHJxOwR4Gd/MHKFtvv 3q/M3FB4LJhWAos6/70SHPXFpX4UVZ5Fshax6pjOY/ET/zRDlHFgKcTe6eTTYlXyclBP dZYPVLnKEEskwbGG8h5r/+NsuBaxfN1F6UxrrShvRUyixsoR1KwuV47L5MWmvxz+/W6g /YI549v1X1rPw4HvuJv/1DDyZruZ8I2Jee6I1i6U+yQ/U+m6afTEnc7IFwfdHXC9LjLg dqjg== X-Gm-Message-State: AOJu0YywhrxCK/2YePFgfs3fcEympKFEW9q5op1ZWARVOBQv0nBI7+Hg QOmyToJP6muuBEDkkUa/sV068UI5+6MM3W1zetO3uCgFq7y7pDEMHCRaswOVu9qpPV1WV7bl5/J Q X-Google-Smtp-Source: AGHT+IEd9QCfarIuSK4tIer5YBAuAYtsJ/NoGnne/z+pIZ+V2zG/c7LQJfoyV1fpoHWzJs2StKVyCA== X-Received: by 2002:a5d:634c:0:b0:379:5c8:33fa with SMTP id ffacd0b85a97d-37ccda6c493mr5507631f8f.0.1727472785696; Fri, 27 Sep 2024 14:33:05 -0700 (PDT) Received: from localhost.localdomain ([176.187.217.136]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37cd575c830sm3350556f8f.111.2024.09.27.14.33.03 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 27 Sep 2024 14:33:05 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Jiaxun Yang , Song Gao , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 1/2] hw/loongarch/virt: Remove unnecessary 'cpu.h' inclusion Date: Fri, 27 Sep 2024 23:32:53 +0200 Message-ID: <20240927213254.17552-2-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240927213254.17552-1-philmd@linaro.org> References: <20240927213254.17552-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=philmd@linaro.org; helo=mail-wr1-x431.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- include/hw/loongarch/virt.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/hw/loongarch/virt.h b/include/hw/loongarch/virt.h index c373e48f27..9ba47793ef 100644 --- a/include/hw/loongarch/virt.h +++ b/include/hw/loongarch/virt.h @@ -8,7 +8,6 @@ #ifndef HW_LOONGARCH_H #define HW_LOONGARCH_H -#include "target/loongarch/cpu.h" #include "hw/boards.h" #include "qemu/queue.h" #include "hw/block/flash.h" From patchwork Fri Sep 27 21:32:54 2024 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: 13814560 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0B1C2CF6482 for ; Fri, 27 Sep 2024 21:33:46 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1suIaW-00085L-Nv; Fri, 27 Sep 2024 17:33:20 -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 1suIaU-000848-3W for qemu-devel@nongnu.org; Fri, 27 Sep 2024 17:33:18 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1suIaR-0002Bz-73 for qemu-devel@nongnu.org; Fri, 27 Sep 2024 17:33:17 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-42cd46f3a26so22019055e9.2 for ; Fri, 27 Sep 2024 14:33:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727472793; x=1728077593; 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=SzfY49PdtDNfg8MFK3xCv1xPYUCRuDNi4q0ni0OdsL8=; b=JVX5arCoYWC+C6Lf40m52DPwvV+ZAfhYckcspO+5YKA+EPlAHQ2vUeTxt+kS8d2QI5 5pbmcvOz1VxbYC7r72dr+f8YX0hyqeZCHAi/F9F0gySJxycfnwwAxKN8Hg7TojjuAFkw QaeVefqccJV1OHK+aMTw24pQldJ6S5k9YVWQgSaRIWUkvj9FXI/xOEtRJO6Xft1oGC6P l8pM0HR09pj94+A3DAuEbqP0EJySbqxVijBIE4Z9O4kviSQFrmiICmcxy9MpOUDGLdjF OVQBX3V6Gsfdde0u+kAyNsmTiMjQZ4Aqwm3P78dh2DNhaN72DIro7KODxapCOXL2yA3U v2WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727472793; x=1728077593; 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=SzfY49PdtDNfg8MFK3xCv1xPYUCRuDNi4q0ni0OdsL8=; b=oABCGH92hADpG3i0yVZXGtXF6ltSbpuRXcP9PeBneDbvDTLCQ4fIFDpnuKUcXmOocA sxuM+vxlLWfwysG8M5jG3UApUNL6vsN7e/qp9TPKKSFeagDkVwMaibVqtoi/UeUwo8XQ txl4Xc4qvTr4YRQSKdJuQhkQ0yzSGgiRh082jFoJPr26riy1/t4LaEOPFwMTC0b0y5rK uazBuIKIaYEdGN1NGCP8IFKqhISoxl3eXSljihvIRD0MJqxpGQah7JlfsfYsvaAGLeKm L5qj+1gJ4kO3cDwjzuOIKT0mwMNIRGdkdZkLw7xbWSC2y23LUatR4eIntwzVYBLD6edV DfLw== X-Gm-Message-State: AOJu0YwVfJSzrAg4xb+X68KJyVAGtZi1bF1OyWq04i4rZvgHhDxBb05b vt+RHOxVWUD551ah6Vk39OjHBsutMwlmTHo77kVEEv9/6TCNgUpAw4Sum2xaravYmgGCQc+Ld4x n X-Google-Smtp-Source: AGHT+IEDbN5vatdsYGseitQaJDR/KbxBcX9wc4+nGPVd+ZGQBFk6sy7z/I8GFmhqx3co02xnMCTNmQ== X-Received: by 2002:a05:600c:1c23:b0:42c:b6db:4270 with SMTP id 5b1f17b1804b1-42f58432debmr29042835e9.11.1727472793332; Fri, 27 Sep 2024 14:33:13 -0700 (PDT) Received: from localhost.localdomain ([176.187.217.136]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e96a3622bsm84360715e9.35.2024.09.27.14.33.10 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 27 Sep 2024 14:33:11 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Jiaxun Yang , Song Gao , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 2/2] hw/loongarch/fw_cfg: Build in common_ss[] Date: Fri, 27 Sep 2024 23:32:54 +0200 Message-ID: <20240927213254.17552-3-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240927213254.17552-1-philmd@linaro.org> References: <20240927213254.17552-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Nothing in LoongArch fw_cfg.c requires target specific definitions. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- hw/loongarch/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/loongarch/meson.build b/hw/loongarch/meson.build index bce7ebac97..005f017e21 100644 --- a/hw/loongarch/meson.build +++ b/hw/loongarch/meson.build @@ -1,8 +1,8 @@ loongarch_ss = ss.source_set() loongarch_ss.add(files( - 'fw_cfg.c', 'boot.c', )) +common_ss.add(when: 'CONFIG_LOONGARCH_VIRT', if_true: files('fw_cfg.c')) loongarch_ss.add(when: 'CONFIG_LOONGARCH_VIRT', if_true: files('virt.c')) loongarch_ss.add(when: 'CONFIG_ACPI', if_true: files('acpi-build.c'))