qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] qemu-binfmt-conf.sh


From: Peter Maydell
Subject: Re: [Qemu-devel] qemu-binfmt-conf.sh
Date: Sat, 12 Apr 2014 09:35:33 +0100

On 12 April 2014 00:57, Sean Omalley <address@hidden> wrote:
> I was looking at  rc2 and /scripts/qemu-binfmt-conf.sh briefly,
> it has
>
> # probe cpu type
> cpu=`uname -m`
> case "$cpu" in
>
> Then there is no cpu for aarch64, but if you poke down further,
> there is a if-then that uses a cpu=aarch64.
>
> Should this be split into something like:
>
> armv[4-7]*)
>     cpu="arm"
>   ;;
> armv[8-9]*)
>     cpu="aarch64"
>   ;;

This would be wrong, because AArch64 systems don't
report their 'uname -m' as "armv8", but as "aarch64".
This case statement only needs entries for the cases where
uname can report multiple different things for systems
which QEMU considers to be the same thing. For
everything else the default (set $cpu to the output of
uname -m) is correct.

thanks
-- PMM



reply via email to

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