* [PATCH for-6.2] meson.build: Merge riscv32 and riscv64 cpu family
@ 2021-11-16 9:50 Richard Henderson
2021-11-16 10:37 ` Philippe Mathieu-Daudé
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Richard Henderson @ 2021-11-16 9:50 UTC (permalink / raw)
To: qemu-devel; +Cc: pbonzini, alistair.francis
In ba0e73336200, we merged riscv32 and riscv64 in configure.
However, meson does not treat them the same. We need to merge
them here as well.
Fixes: ba0e73336200
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
At the moment, configure for riscv64 host fails during meson.
r~
---
meson.build | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meson.build b/meson.build
index 2ece4fe088..ccc6cefc25 100644
--- a/meson.build
+++ b/meson.build
@@ -59,6 +59,12 @@ supported_cpus = ['ppc', 'ppc64', 's390x', 'riscv', 'x86', 'x86_64',
'arm', 'aarch64', 'mips', 'mips64', 'sparc', 'sparc64']
cpu = host_machine.cpu_family()
+
+# Unify riscv* to a single family.
+if cpu in ['riscv32', 'riscv64']
+ cpu = 'riscv'
+endif
+
targetos = host_machine.system()
if cpu in ['x86', 'x86_64']
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH for-6.2] meson.build: Merge riscv32 and riscv64 cpu family
2021-11-16 9:50 [PATCH for-6.2] meson.build: Merge riscv32 and riscv64 cpu family Richard Henderson
@ 2021-11-16 10:37 ` Philippe Mathieu-Daudé
2021-11-16 10:53 ` Peter Maydell
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-11-16 10:37 UTC (permalink / raw)
To: Richard Henderson, qemu-devel; +Cc: pbonzini, alistair.francis
On 11/16/21 10:50, Richard Henderson wrote:
> In ba0e73336200, we merged riscv32 and riscv64 in configure.
> However, meson does not treat them the same. We need to merge
> them here as well.
>
> Fixes: ba0e73336200
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>
> At the moment, configure for riscv64 host fails during meson.
>
>
> r~
>
> ---
> meson.build | 6 ++++++
> 1 file changed, 6 insertions(+)
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH for-6.2] meson.build: Merge riscv32 and riscv64 cpu family
2021-11-16 9:50 [PATCH for-6.2] meson.build: Merge riscv32 and riscv64 cpu family Richard Henderson
2021-11-16 10:37 ` Philippe Mathieu-Daudé
@ 2021-11-16 10:53 ` Peter Maydell
2021-11-16 11:06 ` Richard Henderson
2021-11-16 23:00 ` Alistair Francis
2021-11-17 0:38 ` Alistair Francis
3 siblings, 1 reply; 6+ messages in thread
From: Peter Maydell @ 2021-11-16 10:53 UTC (permalink / raw)
To: Richard Henderson; +Cc: pbonzini, alistair.francis, qemu-devel
On Tue, 16 Nov 2021 at 09:52, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> In ba0e73336200, we merged riscv32 and riscv64 in configure.
> However, meson does not treat them the same. We need to merge
> them here as well.
>
> Fixes: ba0e73336200
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>
> At the moment, configure for riscv64 host fails during meson.
>
>
> r~
>
> ---
> meson.build | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/meson.build b/meson.build
> index 2ece4fe088..ccc6cefc25 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -59,6 +59,12 @@ supported_cpus = ['ppc', 'ppc64', 's390x', 'riscv', 'x86', 'x86_64',
> 'arm', 'aarch64', 'mips', 'mips64', 'sparc', 'sparc64']
>
> cpu = host_machine.cpu_family()
> +
> +# Unify riscv* to a single family.
> +if cpu in ['riscv32', 'riscv64']
> + cpu = 'riscv'
> +endif
Needing to do this seems kinda awkward :-(
-- PMM
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH for-6.2] meson.build: Merge riscv32 and riscv64 cpu family
2021-11-16 10:53 ` Peter Maydell
@ 2021-11-16 11:06 ` Richard Henderson
0 siblings, 0 replies; 6+ messages in thread
From: Richard Henderson @ 2021-11-16 11:06 UTC (permalink / raw)
To: Peter Maydell; +Cc: pbonzini, alistair.francis, qemu-devel
On 11/16/21 11:53 AM, Peter Maydell wrote:
>> cpu = host_machine.cpu_family()
>> +
>> +# Unify riscv* to a single family.
>> +if cpu in ['riscv32', 'riscv64']
>> + cpu = 'riscv'
>> +endif
>
> Needing to do this seems kinda awkward :-(
Yeah, well. It's either once here, or multiple times later.
Or, we admit that riscv32 will never be supported as a host and rename all of our other
bits (tcg/riscv and */host/riscv/) to riscv64.
r~
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH for-6.2] meson.build: Merge riscv32 and riscv64 cpu family
2021-11-16 9:50 [PATCH for-6.2] meson.build: Merge riscv32 and riscv64 cpu family Richard Henderson
2021-11-16 10:37 ` Philippe Mathieu-Daudé
2021-11-16 10:53 ` Peter Maydell
@ 2021-11-16 23:00 ` Alistair Francis
2021-11-17 0:38 ` Alistair Francis
3 siblings, 0 replies; 6+ messages in thread
From: Alistair Francis @ 2021-11-16 23:00 UTC (permalink / raw)
To: Richard Henderson
Cc: Paolo Bonzini, Alistair Francis, qemu-devel@nongnu.org Developers
On Tue, Nov 16, 2021 at 7:51 PM Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> In ba0e73336200, we merged riscv32 and riscv64 in configure.
> However, meson does not treat them the same. We need to merge
> them here as well.
>
> Fixes: ba0e73336200
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Alistair
> ---
>
> At the moment, configure for riscv64 host fails during meson.
>
>
> r~
>
> ---
> meson.build | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/meson.build b/meson.build
> index 2ece4fe088..ccc6cefc25 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -59,6 +59,12 @@ supported_cpus = ['ppc', 'ppc64', 's390x', 'riscv', 'x86', 'x86_64',
> 'arm', 'aarch64', 'mips', 'mips64', 'sparc', 'sparc64']
>
> cpu = host_machine.cpu_family()
> +
> +# Unify riscv* to a single family.
> +if cpu in ['riscv32', 'riscv64']
> + cpu = 'riscv'
> +endif
> +
> targetos = host_machine.system()
>
> if cpu in ['x86', 'x86_64']
> --
> 2.25.1
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH for-6.2] meson.build: Merge riscv32 and riscv64 cpu family
2021-11-16 9:50 [PATCH for-6.2] meson.build: Merge riscv32 and riscv64 cpu family Richard Henderson
` (2 preceding siblings ...)
2021-11-16 23:00 ` Alistair Francis
@ 2021-11-17 0:38 ` Alistair Francis
3 siblings, 0 replies; 6+ messages in thread
From: Alistair Francis @ 2021-11-17 0:38 UTC (permalink / raw)
To: Richard Henderson
Cc: Paolo Bonzini, Alistair Francis, qemu-devel@nongnu.org Developers
On Tue, Nov 16, 2021 at 7:51 PM Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> In ba0e73336200, we merged riscv32 and riscv64 in configure.
> However, meson does not treat them the same. We need to merge
> them here as well.
>
> Fixes: ba0e73336200
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Alistair
> ---
>
> At the moment, configure for riscv64 host fails during meson.
>
>
> r~
>
> ---
> meson.build | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/meson.build b/meson.build
> index 2ece4fe088..ccc6cefc25 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -59,6 +59,12 @@ supported_cpus = ['ppc', 'ppc64', 's390x', 'riscv', 'x86', 'x86_64',
> 'arm', 'aarch64', 'mips', 'mips64', 'sparc', 'sparc64']
>
> cpu = host_machine.cpu_family()
> +
> +# Unify riscv* to a single family.
> +if cpu in ['riscv32', 'riscv64']
> + cpu = 'riscv'
> +endif
> +
> targetos = host_machine.system()
>
> if cpu in ['x86', 'x86_64']
> --
> 2.25.1
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-11-17 0:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16 9:50 [PATCH for-6.2] meson.build: Merge riscv32 and riscv64 cpu family Richard Henderson
2021-11-16 10:37 ` Philippe Mathieu-Daudé
2021-11-16 10:53 ` Peter Maydell
2021-11-16 11:06 ` Richard Henderson
2021-11-16 23:00 ` Alistair Francis
2021-11-17 0:38 ` Alistair Francis
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.