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: Sean Omalley
Subject: Re: [Qemu-devel] qemu-binfmt-conf.sh
Date: Sat, 12 Apr 2014 13:33:32 -0700 (PDT)

Thank you! That is why I asked.  I just thought it was odd to include the 8-9 if that was the case, but I have no way to test it. :)

Sean


On Saturday, April 12, 2014 4:35 AM, Peter Maydell <address@hidden> wrote:
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]