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 4ECC0E74ACF for ; Tue, 3 Dec 2024 20:09:17 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIZCW-0006ez-1u; Tue, 03 Dec 2024 15:08:52 -0500 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 1tIZCT-0006d4-Cz for qemu-riscv@nongnu.org; Tue, 03 Dec 2024 15:08:49 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tIZCQ-0003HJ-5f for qemu-riscv@nongnu.org; Tue, 03 Dec 2024 15:08:47 -0500 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-385e2c52c21so2425550f8f.2 for ; Tue, 03 Dec 2024 12:08:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733256524; x=1733861324; 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=1Z+oPOY9zkW5nSvF8Evg7C1/iJ6Xb0OH2wlMJp2C/qo=; b=YLV+bVm+CDkPYgz/oNo/X5B1LzpiKtLPA1L1DECw989piUmWhVt3sxoqSMGyx2rFRM RhQweMZl2VCyh1o0bTzrPEsROQKHDwB7JV6RJ/I3TkYs+DPpUYfpyCxlRxbChhL6eQsg yg1AXBCzA4Btk5nVtrDLkBCaCKDx7hLsdc3phpuz+3pbFc8oOD1kCtIUjB85YArxadrf vMoaTljs0G0LFNBF45NaqSdxY+GXdxm84ZLNiasTtnUo14LubNyvoVSWzisgOQJ5uIPc 8knvXmivopHF8pMirJmF0OkV3cs4zhlLZFxp/CzBwYWr+O1kWCuK29w9TEs/MGJSVc4P mYQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733256524; x=1733861324; 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=1Z+oPOY9zkW5nSvF8Evg7C1/iJ6Xb0OH2wlMJp2C/qo=; b=R0VK0snZj1jw9sCPUCSvajW9wQU3VpDowjaN+YI8anrwOZRKOkzBRBxoKn4Qq9BSnd 5vKX1v9gzilEA04O0VrtxrExC80vijHtsOMCDIUTHPINn/16/WpUBpHpGAQEwSOQnx7Z 3pgqvQpOw9LbPgnwKWNWd8NJJ4cPBTrSqGHEvNpNl7sWTDrS+N40Y+fb8hglQ2ovxwre R+AeTnhKYUIO5uAI4bD6TJIE0145pfoPpKzO4m2cw+IZv3OljARMISlvOenKSARv23ee 8CgcB07XFE+Oy9soydrpMZNGTMwoiwrHyPBegzEZI1OR5r5u6EUcvqCuyso5fsf/SMOS V4sw== X-Forwarded-Encrypted: i=1; AJvYcCU0dKpP73xlIZi/Isist+a81inBfbqjFFBLC5ts9k5ER5hMdHJRwX1UnsbMzj+cH5G0iXe75FMEgY9P@nongnu.org X-Gm-Message-State: AOJu0YxNgF3g/Slo5OqWu+3NjzcJj58GKGwa4Ixg3EN5xuWLwlIK/Suh m3CDwdiqalFYztJlpEKvC4zEI/5XDGvkJDanSZa0Ql3BQc9QgVYnTTbmFgoyGK4= X-Gm-Gg: ASbGncuH0voxGory3yr5MEPSjaO3U479H4RRFk+h6LLNi1H8pMuZxsqflRlKuyb8M+7 +JmVVmqtLapulcvmQ59BC0x7T6+iyMy2Nx3ElNDuqA/+2h2hNYq380VchpxHDXrDWkf+L9XsdNX p60x+JgwlEvvmlCDVCHgmRugbjFDhBptnnmYfX8owEgzTri6m2of4+xblBO4OrbuTMyhm1Pi8q/ 1MGnJQds0yWDEx9WsZ7prff/ZQvUJgxtXnNBApyhOAtxrYw6zguBIGULpGjphEgemL1zNRs74PH Sg== X-Google-Smtp-Source: AGHT+IF4fQBFsW+NxSAbs2sW/fx5c+t0fCV00XJKeHtclBhrZEnCA1P0iSmfPf4+zcf1Z+IAPSERkw== X-Received: by 2002:a05:6000:1a88:b0:385:e9ca:4e2a with SMTP id ffacd0b85a97d-385fd3f2168mr3266300f8f.4.1733256524368; Tue, 03 Dec 2024 12:08:44 -0800 (PST) Received: from localhost.localdomain ([176.187.209.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-385e3c21ba7sm10804489f8f.53.2024.12.03.12.08.42 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 03 Dec 2024 12:08:43 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Weiwei Li , Daniel Henrique Barboza , Palmer Dabbelt , Liu Zhiwei , Bin Meng , qemu-riscv@nongnu.org, Alistair Francis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 2/2] target/riscv: Include missing headers in 'internals.h' Date: Tue, 3 Dec 2024 21:08:28 +0100 Message-ID: <20241203200828.47311-3-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241203200828.47311-1-philmd@linaro.org> References: <20241203200828.47311-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=philmd@linaro.org; helo=mail-wr1-x42a.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-riscv@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-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Rather than relying on implicit includes, explicit them, in order to avoid when refactoring unrelated headers: target/riscv/internals.h:49:15: error: use of undeclared identifier 'PRV_S' 49 | ret = PRV_S; | ^ target/riscv/internals.h:93:9: error: call to undeclared function 'env_archcpu'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 93 | if (env_archcpu(env)->cfg.ext_zfinx) { | ^ target/riscv/internals.h:101:15: error: unknown type name 'float32'; did you mean 'float'? 101 | static inline float32 check_nanbox_s(CPURISCVState *env, uint64_t f) | ^~~~~~~ | float Signed-off-by: Philippe Mathieu-Daudé --- target/riscv/internals.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/riscv/internals.h b/target/riscv/internals.h index ddbdee885bc..76934eaa7b5 100644 --- a/target/riscv/internals.h +++ b/target/riscv/internals.h @@ -19,7 +19,10 @@ #ifndef RISCV_CPU_INTERNALS_H #define RISCV_CPU_INTERNALS_H +#include "exec/cpu-common.h" #include "hw/registerfields.h" +#include "fpu/softfloat-types.h" +#include "target/riscv/cpu_bits.h" /* * The current MMU Modes are: -- 2.45.2