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 4A74AE74AD8 for ; Tue, 3 Dec 2024 21:08:37 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIa7k-0005IQ-Ez; Tue, 03 Dec 2024 16:08:00 -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 1tIa7j-0005I7-4q for qemu-riscv@nongnu.org; Tue, 03 Dec 2024 16:07:59 -0500 Received: from mail-pf1-x42a.google.com ([2607:f8b0: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 1tIa7g-0002Zy-A1 for qemu-riscv@nongnu.org; Tue, 03 Dec 2024 16:07:58 -0500 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-724e5fb3f9dso5276334b3a.3 for ; Tue, 03 Dec 2024 13:07:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1733260075; x=1733864875; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=6OM2wERgAX/O8VV+420uVx+rVWF8CNr/EEB/9Zlg2fk=; b=JnV92BAeA9rmcVH7n2e6T7Rsik/Sz3FztZoXBGd4fcDw160W3n9q36ZBcv8Npzf6pj hdAQUNhGTMtGu93AfpXy8CKmige9DhqBzIwbIUnYdFIrjn0znYR1O9Xoi/bhMta2nMgQ fLDdrI2oHmLxUafZg3Dlf05B9pKcG8WczlqpXMfrIaZQDFUDxQrOQc4UqYlvDqinFdJ5 9hv3Y+ipDGCYR3UnFaF8CYacB5cLp7FGsoxwzipBkXIk2vnwpBFADiWbFC0yOium0tQv BauqlmZSfipMZqaUo0i6KVeWwfZRpAdXZylrN0gqwpbbaXpzbH0s7XCfBJ2sQ8ba2v/J PG7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733260075; x=1733864875; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6OM2wERgAX/O8VV+420uVx+rVWF8CNr/EEB/9Zlg2fk=; b=LD+wdGbxx+PwdzFw01+1vlMpxpF4yDu13b/MEsFEYXCH7VnvzbpWV9yatqTU3u8KG9 z2gF/fP2wJUidkAKeFUNkwXJtiGoVwNDhjLdqGehm7Pv3YVVNVX+22Yam0GaKQHttg0l ZRz3ENS2+Uo3a0AEpalA5UPaGse9ieczYlz/bm+KUkTwTq4gRXbZJtAr0MHHs9ORbl3g yaQgWYGuU4NVVt5GEH+hq5mixI2V4RUNWDpGtCXwhaU6Ntrh19qL3mgNPFZZ9UpmbRfB XvyuWCqREatVtuJBZwfAspBvINn+hkC7aLW8gBWbKbxVPdHCUHL45UQtg+xVqUFZ/vep C7sA== X-Forwarded-Encrypted: i=1; AJvYcCVt7LmnBiR9RT0wcs37Id7JkhX5n6X1CD/nXTXMRrt3WBQyeYvyq1gx/rPKel8WHuDuiuvPfEk4Vco6@nongnu.org X-Gm-Message-State: AOJu0Yxun8FoLJ+bokVJ95sYH4SNkBWlgh96EmbJzFjuDvMDlBqMYkmL GiEdD4W7ihv49y2+qyIFzNUgIH+rMlHBUDcJr2MAnfeqAXliLXnfjJencV4yeis= X-Gm-Gg: ASbGnctc4JZNS4ZPJXyktik3FE4PbETURmBNK5IRhElfGSsWGyhBZGHuKCGqzkLe6Ix 9LJWo0FiZHu+YMCGSkmtjt/vxmnn5V15n4h0kfV+LGJbMRkP57cIH+1mwkJvq35vNt9mdG+onuC Aq/QKqd7uCMoe/V+2yAw5c4L7r1/nKS5ezbH8ACf6yxS97YGowzgcl7oP7sJsaggnSSvkJNXodD 4JcLtd7KFvgtHFLZbjQqdZ4LbBwPWBCu9rE1RIfyS84C4UJhw0tTiLqe93zR8E= X-Google-Smtp-Source: AGHT+IGEU7xhzF+SJ5ujAzUKZqBnDXLN1FlMwl1X4LRG+/O5/V6j7B7mnIc7bFIl9E0r5ZuZurOP2A== X-Received: by 2002:a17:90b:3d09:b0:2ee:f80c:6889 with SMTP id 98e67ed59e1d1-2ef012759f0mr5540180a91.33.1733260074717; Tue, 03 Dec 2024 13:07:54 -0800 (PST) Received: from [192.168.68.110] ([187.101.65.72]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ef2701def5sm1184a91.31.2024.12.03.13.07.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Dec 2024 13:07:54 -0800 (PST) Message-ID: Date: Tue, 3 Dec 2024 18:07:52 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] target/riscv: Include missing headers in 'internals.h' To: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Cc: Weiwei Li , Palmer Dabbelt , Liu Zhiwei , Bin Meng , qemu-riscv@nongnu.org, Alistair Francis References: <20241203200828.47311-1-philmd@linaro.org> <20241203200828.47311-3-philmd@linaro.org> Content-Language: en-US From: Daniel Henrique Barboza In-Reply-To: <20241203200828.47311-3-philmd@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=dbarboza@ventanamicro.com; helo=mail-pf1-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=unavailable 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 On 12/3/24 5:08 PM, Philippe Mathieu-Daudé wrote: > 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é > --- Reviewed-by: Daniel Henrique Barboza > 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: