qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: "qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
	Huacai Chen <chenhc@lemote.com>,
	Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>,
	Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>,
	Richard Henderson <richard.henderson@linaro.org>,
	Laurent Vivier <laurent@vivier.eu>,
	Meng Zhuo <mengzhuo1203@gmail.com>
Subject: Re: [PATCH 2/2] linux-user: Add support for MIPS Loongson 2F/3E
Date: Tue, 1 Dec 2020 09:45:39 +0100	[thread overview]
Message-ID: <CAAdtpL4koHjJrbW+HyykN34YtYH45SXyiUs9OaSVnJsN1cCdsA@mail.gmail.com> (raw)
In-Reply-To: <20201201083951.2745111-3-f4bug@amsat.org>

On Tue, Dec 1, 2020 at 9:40 AM Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>
> Userland EFL binaries using Longsoon SIMD instructions have the
> HWCAP_LOONGSON_MMI bit set. Binaries compiled for Longsoon 3E
> have the HWCAP_LOONGSON_EXT bit set for the LQ / SQ instructions.
>

Eventually I can respin with references:

2F since 8e2d5831e4b ("target/mips: Legalize Loongson insn flags").
3E since af868995e1b ("target/mips: Add Loongson-3 CPU definition").

> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  linux-user/elfload.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/linux-user/elfload.c b/linux-user/elfload.c
> index 17371f8b8cd..be82fcb2c0a 100644
> --- a/linux-user/elfload.c
> +++ b/linux-user/elfload.c
> @@ -1012,6 +1012,8 @@ static uint32_t get_elf_hwcap(void)
>
>      GET_FEATURE(ISA_MIPS32R6 | ISA_MIPS64R6, HWCAP_MIPS_R6);
>      GET_FEATURE(ASE_MSA, HWCAP_MIPS_MSA);
> +    GET_FEATURE(ASE_LMMI, HWCAP_LOONGSON_MMI);
> +    GET_FEATURE(ASE_LEXT, HWCAP_LOONGSON_EXT);
>
>  #undef GET_FEATURE
>
> --
> 2.26.2
>


  reply	other threads:[~2020-12-01  8:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-01  8:39 [PATCH 0/2] linux-user: Add support for MIPS Loongson 2F/3E Philippe Mathieu-Daudé
2020-12-01  8:39 ` [PATCH 1/2] linux-user: Update HWCAP bits from linux 5.7 Philippe Mathieu-Daudé
2020-12-01  8:39 ` [PATCH 2/2] linux-user: Add support for MIPS Loongson 2F/3E Philippe Mathieu-Daudé
2020-12-01  8:45   ` Philippe Mathieu-Daudé [this message]
2020-12-01 13:01     ` Philippe Mathieu-Daudé
2020-12-01 12:20 ` [PATCH 0/2] " 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=CAAdtpL4koHjJrbW+HyykN34YtYH45SXyiUs9OaSVnJsN1cCdsA@mail.gmail.com \
    --to=f4bug@amsat.org \
    --cc=aleksandar.rikalo@syrmia.com \
    --cc=aurelien@aurel32.net \
    --cc=chenhc@lemote.com \
    --cc=jiaxun.yang@flygoat.com \
    --cc=laurent@vivier.eu \
    --cc=mengzhuo1203@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).