[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 77/77] linux-user: Add nanoMIPS support in sc
From: |
Aleksandar Rikalo |
Subject: |
Re: [Qemu-devel] [PATCH v6 77/77] linux-user: Add nanoMIPS support in scripts/qemu-binfmt-conf.sh |
Date: |
Fri, 3 Aug 2018 11:23:40 +0000 |
Hi, Laurent,
Thank You for the explanation.
We will correct this in the next version.
We will also fix family values for the regular mips architectures in separate
patch.
Best Regards,
Aleksandar Rikalo
________________________________
From: Laurent Vivier <address@hidden>
Sent: Thursday, August 2, 2018 9:47:02 PM
To: Stefan Markovic; address@hidden
Cc: address@hidden; address@hidden; address@hidden; address@hidden; Aleksandar
Markovic; Stefan Markovic; Petar Jovanovic; Paul Burton; Aleksandar Rikalo
Subject: Re: [PATCH v6 77/77] linux-user: Add nanoMIPS support in
scripts/qemu-binfmt-conf.sh
Le 02/08/2018 à 16:17, Stefan Markovic a écrit :
> From: Aleksandar Rikalo <address@hidden>
>
> Add support for nanomips[eb] variant in scripts/qemu-binfmt-conf.sh.
>
> Signed-off-by: Aleksandar Markovic <address@hidden>
> Signed-off-by: Stefan Markovic <address@hidden>
> ---
> scripts/qemu-binfmt-conf.sh | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh
> index b0dc8a7..ecde0c2 100755
> --- a/scripts/qemu-binfmt-conf.sh
> +++ b/scripts/qemu-binfmt-conf.sh
> @@ -2,7 +2,7 @@
> # Enable automatic program execution by the kernel.
>
> qemu_target_list="i386 i486 alpha arm armeb sparc32plus ppc ppc64 ppc64le
> m68k \
> -mips mipsel mipsn32 mipsn32el mips64 mips64el \
> +mips mipsel mipsn32 mipsn32el mips64 mips64el nanomips nanomipseb \
> sh4 sh4eb s390x aarch64 aarch64_be hppa riscv32 riscv64 xtensa xtensaeb \
> microblaze microblazeel or1k"
>
> @@ -76,6 +76,14 @@
> mips64el_magic='\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\
>
> mips64el_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff'
> mips64el_family=mips
>
> +nanomips_magic='\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xf9\x00'
> +nanomips_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'
> +nanomips_family=mips
> +
> +nanomipseb_magic='\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xf9'
> +nanomipseb_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'
> +nanomipseb_family=mips
The goal of the family value is not to register the interpreter if the
kernel can execute the executable directly (without qemu).
For instance a ppc64 kernel can execute a ppc executable, an x86_64
kernel can execute a i386 binary.
If you put nanomips in the mips family it means a mips kernel can
execute directly a nanomips executable: Is that the case?
If not, I think you can use "nanomips_family=nanomips", and if a
nanomips kernel cannot execute a nanomipseb executable, you need also a
nanomipseb family.
Thanks,
Laurent
- [Qemu-devel] [PATCH v6 69/77] linux-user: Add target_structs.h header for nanoMIPS, (continued)
- [Qemu-devel] [PATCH v6 69/77] linux-user: Add target_structs.h header for nanoMIPS, Stefan Markovic, 2018/08/02
- [Qemu-devel] [PATCH v6 70/77] linux-user: Add target_elf.h header for nanoMIPS, Stefan Markovic, 2018/08/02
- [Qemu-devel] [PATCH v6 71/77] linux-user: Add signal.c for nanoMIPS, Stefan Markovic, 2018/08/02
- [Qemu-devel] [PATCH v6 72/77] linux-user: Add support for nanoMIPS signal trampoline, Stefan Markovic, 2018/08/02
- [Qemu-devel] [PATCH v6 73/77] linux-user: Add cpu_loop.c for nanoMIPS, Stefan Markovic, 2018/08/02
- [Qemu-devel] [PATCH v6 74/77] linux-user: Amend support for sigaction() syscall for nanoMIPS, Stefan Markovic, 2018/08/02
- [Qemu-devel] [PATCH v6 75/77] linux-user: Add support for statx() syscall for all platforms, Stefan Markovic, 2018/08/02
- [Qemu-devel] [PATCH v6 76/77] linux-user: Add nanoMIPS linux user mode configuration support, Stefan Markovic, 2018/08/02
- [Qemu-devel] [PATCH v6 77/77] linux-user: Add nanoMIPS support in scripts/qemu-binfmt-conf.sh, Stefan Markovic, 2018/08/02
- Re: [Qemu-devel] [PATCH v6 00/77] Add nanoMIPS support to QEMU, no-reply, 2018/08/02