From: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>, qemu-devel@nongnu.org
Cc: Weiwei Li <liwei1518@gmail.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Liu Zhiwei <zhiwei_liu@linux.alibaba.com>,
Bin Meng <bmeng.cn@gmail.com>,
qemu-riscv@nongnu.org,
Alistair Francis <alistair.francis@wdc.com>
Subject: Re: [PATCH 2/2] target/riscv: Include missing headers in 'internals.h'
Date: Tue, 3 Dec 2024 18:07:52 -0300 [thread overview]
Message-ID: <fd627284-c9ba-40e8-b592-e736ce7c51cd@ventanamicro.com> (raw)
In-Reply-To: <20241203200828.47311-3-philmd@linaro.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é <philmd@linaro.org>
> ---
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
> 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:
next prev parent reply other threads:[~2024-12-03 21:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-03 20:08 [PATCH 0/2] target/riscv: Include missing headers in '*internals.h' Philippe Mathieu-Daudé
2024-12-03 20:08 ` [PATCH 1/2] target/riscv: Include missing headers in 'vector_internals.h' Philippe Mathieu-Daudé
2024-12-03 21:07 ` Daniel Henrique Barboza
2024-12-04 2:29 ` Alistair Francis
2024-12-03 20:08 ` [PATCH 2/2] target/riscv: Include missing headers in 'internals.h' Philippe Mathieu-Daudé
2024-12-03 21:07 ` Daniel Henrique Barboza [this message]
2024-12-04 2:29 ` Alistair Francis
2024-12-04 2:41 ` [PATCH 0/2] target/riscv: Include missing headers in '*internals.h' Alistair Francis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fd627284-c9ba-40e8-b592-e736ce7c51cd@ventanamicro.com \
--to=dbarboza@ventanamicro.com \
--cc=alistair.francis@wdc.com \
--cc=bmeng.cn@gmail.com \
--cc=liwei1518@gmail.com \
--cc=palmer@dabbelt.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=zhiwei_liu@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.