Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250222005047.GJ1827@brightrain.aerifal.cx>
Date: Fri, 21 Feb 2025 19:50:49 -0500
From: Rich Felker <dalias@...c.org>
To: Xing Li <lixing@...ngson.cn>
Cc: musl@...ts.openwall.com, wanghongliang@...ngson.cn
Subject: Re: [PATCH]     loongarch64: add bits/hwcap.h

On Fri, Nov 15, 2024 at 03:26:42PM +0800, Xing Li wrote:
>     loongarch64 have cpu feature bits defined in linux
>     for AT_HWCAP auxv entry.
> ---
>  arch/loongarch64/bits/hwcap.h | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
>  create mode 100644 arch/loongarch64/bits/hwcap.h
> 
> diff --git a/arch/loongarch64/bits/hwcap.h b/arch/loongarch64/bits/hwcap.h
> new file mode 100644
> index 00000000..355beda7
> --- /dev/null
> +++ b/arch/loongarch64/bits/hwcap.h
> @@ -0,0 +1,16 @@
> +/* The following must match the kernel's <asm/hwcap.h>.  */
> +/* HWCAP flags */
> +#define HWCAP_LOONGARCH_CPUCFG          (1 << 0)
> +#define HWCAP_LOONGARCH_LAM             (1 << 1)
> +#define HWCAP_LOONGARCH_UAL             (1 << 2)
> +#define HWCAP_LOONGARCH_FPU             (1 << 3)
> +#define HWCAP_LOONGARCH_LSX             (1 << 4)
> +#define HWCAP_LOONGARCH_LASX            (1 << 5)
> +#define HWCAP_LOONGARCH_CRC32           (1 << 6)
> +#define HWCAP_LOONGARCH_COMPLEX         (1 << 7)
> +#define HWCAP_LOONGARCH_CRYPTO          (1 << 8)
> +#define HWCAP_LOONGARCH_LVZ             (1 << 9)
> +#define HWCAP_LOONGARCH_LBT_X86         (1 << 10)
> +#define HWCAP_LOONGARCH_LBT_ARM         (1 << 11)
> +#define HWCAP_LOONGARCH_LBT_MIPS        (1 << 12)
> +#define HWCAP_LOONGARCH_PTW             (1 << 13)
> -- 
> 2.27.0

Thanks, applying.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.