qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] configure: map x32 to cpu_family x86_64 for meson


From: Daniel P . Berrangé
Subject: Re: [PATCH] configure: map x32 to cpu_family x86_64 for meson
Date: Wed, 9 Jun 2021 13:45:37 +0100
User-agent: Mutt/2.0.7 (2021-05-04)

On Wed, Jun 09, 2021 at 08:28:39AM -0400, David Michael wrote:
> The meson.build file defines supported_cpus which does not contain
> x32, and x32 is not one of meson's stable built-in values:
> https://mesonbuild.com/Reference-tables.html#cpu-families
> 
> Signed-off-by: David Michael <fedora.dm0@gmail.com>
> ---
> 
> Hi,
> 
> QEMU fails to build for x32 due to that cpu_family not being defined in
> supported_cpus.  Can something like this be applied?
> 
> Alternatively, maybe it could be added to supported_cpus and accepted
> everywhere that matches x86 in meson.build, but upstream meson does not
> define a CPU type for x32.

"supported_cpus" serves two distinct purposes in meson.build

 - Identifies whether TCG supports the target
 - Identifies whether QEMU maintainers consider the target supported

The change proposed below makes x32 be treated the same as x86_64.

Maybe that's right for the question of TCG support, but I'm less
sure it is right from POV of QEMU maintainers expectations around
the x32 target status. AFAIK, we don't have any CI for x32 and
IIUC no maintainers are actively testing it manually, so it ought
to be in the unsupported category.


>  configure | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure b/configure
> index 8dcb9965b2..4478f3889a 100755
> --- a/configure
> +++ b/configure
> @@ -6384,7 +6384,7 @@ if test "$skip_meson" = no; then
>          i386)
>              echo "cpu_family = 'x86'" >> $cross
>              ;;
> -        x86_64)
> +        x86_64|x32)
>              echo "cpu_family = 'x86_64'" >> $cross
>              ;;
>          ppc64le)




Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




reply via email to

[Prev in Thread] Current Thread [Next in Thread]