All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: David Kozub <zub@linux.fjfi.cvut.cz>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Add SH4 ELF magic into qemu-binfmt-conf.sh.
Date: Sat, 19 Dec 2009 18:34:33 +0100	[thread overview]
Message-ID: <20091219173433.GU24729@hall.aurel32.net> (raw)
In-Reply-To: <alpine.LRH.2.00.0912162257340.22548@linux.fjfi.cvut.cz>

On Wed, Dec 16, 2009 at 11:03:42PM +0100, David Kozub wrote:
>
> Signed-off-by: David Kozub <zub@linux.fjfi.cvut.cz>
> ---
>  qemu-binfmt-conf.sh |    9 ++++++++-
>  1 files changed, 8 insertions(+), 1 deletions(-)
>
> diff --git a/qemu-binfmt-conf.sh b/qemu-binfmt-conf.sh
> index ba916ac..9c65c9a 100644
> --- a/qemu-binfmt-conf.sh
> +++ b/qemu-binfmt-conf.sh
> @@ -1,5 +1,5 @@
>  #!/bin/sh
> -# enable automatic i386/ARM/M68K/MIPS/SPARC/PPC program execution by the kernel
> +# enable automatic i386/ARM/M68K/MIPS/SPARC/PPC/SH4 program execution by the kernel
>
>  # load the binfmt_misc module
>  if [ ! -d /proc/sys/fs/binfmt_misc ]; then
> @@ -27,6 +27,9 @@ case "$cpu" in
>    armv4l)
>      cpu="arm"
>    ;;
> +  sh4)
> +    cpu="sh4"
> +  ;;
>  esac

As already pointed, this part is actually useless.

>  # register the interpreter for each cpu except for the native one
> @@ -60,3 +63,7 @@ if [ $cpu != "mips" ] ; then
>      echo   ':mips64:M::\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/local/bin/qemu-mips64:' > /proc/sys/fs/binfmt_misc/register
>      echo   ':mips64el:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/local/bin/qemu-mips64el:' > /proc/sys/fs/binfmt_misc/register
>  fi
> +if [ $cpu != "sh4" ] ; then
> +    echo ':sh4:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a\x00:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/local/bin/qemu-sh4:' > /proc/sys/fs/binfmt_misc/register
> +    echo ':sh4eb:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/local/bin/qemu-sh4eb:' > /proc/sys/fs/binfmt_misc/register
> +fi
> -- 
> 1.6.4.4
>
>
>

-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

  reply	other threads:[~2009-12-19 17:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-16 22:03 [Qemu-devel] [PATCH] Add SH4 ELF magic into qemu-binfmt-conf.sh David Kozub
2009-12-19 17:34 ` Aurelien Jarno [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-12-17 13:11 David Kozub
2009-12-17 19:45 ` Richard Henderson
2009-12-17 21:15   ` David Kozub
2009-12-17 22:47     ` Richard Henderson

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=20091219173433.GU24729@hall.aurel32.net \
    --to=aurelien@aurel32.net \
    --cc=qemu-devel@nongnu.org \
    --cc=zub@linux.fjfi.cvut.cz \
    /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.