From patchwork Thu Apr 24 09:46:47 2025 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: 883934 Delivered-To: patch@linaro.org Received: by 2002:a5d:474d:0:b0:38f:210b:807b with SMTP id o13csp3341592wrs; Thu, 24 Apr 2025 02:47:58 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVuizz8MTAlUwiAoS94NwWkEaLzTUEV7ZMzn12TTCT8lY6SnfvJyvlFVZrI9EkEzvdS9tGZDg==@linaro.org X-Google-Smtp-Source: AGHT+IG5tTMvJUWgTL/61z+T/8jxyNMdLLbzFgjUAtT5xnZ2o5tZoeluewnaIbxGwB9O28BK2p2l X-Received: by 2002:ac8:570e:0:b0:474:fe31:a239 with SMTP id d75a77b69052e-47eb248db7cmr28689491cf.3.1745488078175; Thu, 24 Apr 2025 02:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1745488078; cv=none; d=google.com; s=arc-20240605; b=SdMIlkFQuBq6Me6O74sCKN+T/NRWoWJLPoqEbQqVX9LvsxGK25bh1LtXUFywPfhg27 1UqbOAxn7ombWbl7JDI7RCfSZ56Ms0I6KOCtPEdiOKgidad/4rrkgl/WxBKAC445jiy3 E1R0EVppxUfTIviebA909n4AsRHUNwTygjAse79FvZiLuvFBbA8zzkwmwYqvD/rhdSnX SWLyeusSHeqHV8SZ++EvH4gaOOTOx83D4jQ3ncBmNust2beqMjmqImQuFzwDckHIWuko eelavr884RCQrPyPviwbXoI8+ARxVcxW+yuQeLkcPeA0aRcRS0uAadoAucvPybKkcDM1 RJfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=766nu4+voMP/IZQOGysMn7ofUaqxPgeNp6L0gDtkVMA=; fh=OfreXVzz+9AWc5zm3wgpgY6oO4v5p5SO53/S12OWUWc=; b=AKvvPRUR3hdHr9Buqna7k/nUoXbreKCKlxCLJvHARjfcDu+eTJ/JGOMfy0XoKjQGqW ePW7sUp07+18RUQX1FBJSGlMDUlIPaEtMylgLs+SO8o6WW9+Fa6xnVCN7vZ5oB2u6V9+ vI1nBtMU7eW2GdDr7VoE6FeCDOTz1pVDMI66D7NuHI0MNFG/najEKm6j89/VXjgajdQb VR0Nat/dn2iErfS2n/Mlg+C7XqgrZmHAzuOrgxm5tTUvly0rRBEPbHTKH/fTXtPTWRDy OpCxX5e4a+HLqMGkym3vYISophhqB2H6RzAw8SWh3UoSYQ8Wb+DKRsoRJGg7PCWLVPva uciQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dM8Priw/"; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-47ea1995e06si13503771cf.217.2025.04.24.02.47.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Apr 2025 02:47:58 -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="dM8Priw/"; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u7tB9-0007vP-1a; Thu, 24 Apr 2025 05:47:35 -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 1u7tB6-0007qh-3P for qemu-devel@nongnu.org; Thu, 24 Apr 2025 05:47:32 -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 1u7tB4-0002aj-4x for qemu-devel@nongnu.org; Thu, 24 Apr 2025 05:47:31 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-43cf034d4abso7063505e9.3 for ; Thu, 24 Apr 2025 02:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1745488048; x=1746092848; 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=766nu4+voMP/IZQOGysMn7ofUaqxPgeNp6L0gDtkVMA=; b=dM8Priw/a6VamxtAtUE/XLYR9h3U84T1V34luaPqUhVw3O9nFGHUSIL0XGA4Oneknw H9hvfT6px/SbNj1jek99kzoQEs1XxxIybp3qkY4CVFo2jUlDiBtgwY4cgXud5drA5AGL Okln0UxNa9MqSw7cRcWFjSgWLJL28/rKk+KsbHhodVgpb7bwvmIZbrCG81zRBPslvZaR bd0PpoC/Bp5L3go/owtGlaySDeil1QqqECeWO+3FVItX8TBMBbvLlrh+wjTJHbAVBvei oscev77thg4ypB/bYcAjABaIVgf2WeOyET3a8XyMw1ftoG3IakQ5rXaCHr5HmjznR2XR /Y8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745488048; x=1746092848; 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=766nu4+voMP/IZQOGysMn7ofUaqxPgeNp6L0gDtkVMA=; b=YdvYfrD47XLNAiSClHL94a4FzQiR9LmvaUEYpqAYa8lERTk4DtDZva9+OPmVRjghCO 96siwcw5Fp3jZBb+91Ri2sDXWh8eQ1MWSG52xkIDY95Hyjvo6aTxGzQstwILMYImey3n hoAli7XFUW+D4GJAplCmnB731Lw6jbnWpX0b7iibZCN9KV7ETJoxhdtoPi2dxAki92aw oSALOSNeVVYSY5kCp+EmZomWrEyNPzUZ4cME4y4qZJD7qTgZ7FchAeW2V3P5OB9rIOJ6 YoQMYm1rMOgf8JrgC2VszF/2dXewhUGqgulsJDbXDEe3KZk3+Od6s0EwT6tI986yzfDA KScw== X-Gm-Message-State: AOJu0YzQQV6Jkcjo8GKDLZ+WACWQiJTC1Nysa1kMUtlkQNFX9odBRk0m ABVRMTmb0tGTGZFBymaht7i3tY7TgFj5ISyMCfTr40wozeVGuI6+IVLGIzGa6PufxceBraPyGqu K X-Gm-Gg: ASbGncvrQqKes51kvQ9pbOOkFBU09BBy7GBacwjF35SINjzP2+dGl86oFgrrbWnrSZe PUp1ay5eztC+0EI7Miy6MatEm0uJBrUtIUAjSMIVRHr0E1223vjMspHyVj3u0BJVopL8xCku0ZV Ion8F1TIERAKuwsHfaAygngbMbarYe5TxbCi8dtm9c3P/TjqDGt+2FxBY4Nac7Vc7cCYh+DFNx8 CEbUp1qyQx6jLJ8ki/zI7A1qh3O80is3qKPIzyIQM3Blda/bSnWAZw/GQ12lda2AStJTPESptoP u8uMsPU7x1qrpjnRouu9TNZVkdk5Kge2gZ5BxWjF9DO956WLnI25V/iN7XlvL0fNxiZx9doIs33 fuXbM00mQDGcQ7uoOyyWj X-Received: by 2002:a05:600c:450e:b0:43d:1824:aadc with SMTP id 5b1f17b1804b1-4409bd89ca4mr13272515e9.29.1745488048358; Thu, 24 Apr 2025 02:47:28 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4409d2bfa93sm13947915e9.37.2025.04.24.02.47.27 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 24 Apr 2025 02:47:27 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Richard Henderson Cc: Pierrick Bouvier , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 07/13] target/riscv: Include missing 'accel/tcg/getpc.h' in csr.c Date: Thu, 24 Apr 2025 11:46:47 +0200 Message-ID: <20250424094653.35932-8-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250424094653.35932-1-philmd@linaro.org> References: <20250424094653.35932-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: -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=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 "accel/tcg/getpc.h" is pulled in indirectly. Include it explicitly to avoid when refactoring unrelated headers: target/riscv/csr.c:2117:25: error: call to undeclared function 'GETPC' [-Wimplicit-function-declaration] 2117 | if ((val & RVC) && (GETPC() & ~3) != 0) { | ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Mark Cave-Ayland Acked-by: Alistair Francis --- target/riscv/csr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/riscv/csr.c b/target/riscv/csr.c index c52c87faaea..13086438552 100644 --- a/target/riscv/csr.c +++ b/target/riscv/csr.c @@ -28,6 +28,7 @@ #include "exec/cputlb.h" #include "exec/tb-flush.h" #include "exec/icount.h" +#include "accel/tcg/getpc.h" #include "qemu/guest-random.h" #include "qapi/error.h" #include