mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [PATCH]     loongarch64: add bits/hwcap.h
@ 2024-11-15  7:26 Xing Li
  2025-02-22  0:50 ` Rich Felker
  0 siblings, 1 reply; 3+ messages in thread
From: Xing Li @ 2024-11-15  7:26 UTC (permalink / raw)
  To: musl; +Cc: wanghongliang

    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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [musl] [PATCH]     loongarch64: add bits/hwcap.h
  2024-11-15  7:26 [musl] [PATCH] loongarch64: add bits/hwcap.h Xing Li
@ 2025-02-22  0:50 ` Rich Felker
  2025-04-03 10:16   ` Yao Zi
  0 siblings, 1 reply; 3+ messages in thread
From: Rich Felker @ 2025-02-22  0:50 UTC (permalink / raw)
  To: Xing Li; +Cc: musl, wanghongliang

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [musl] [PATCH]     loongarch64: add bits/hwcap.h
  2025-02-22  0:50 ` Rich Felker
@ 2025-04-03 10:16   ` Yao Zi
  0 siblings, 0 replies; 3+ messages in thread
From: Yao Zi @ 2025-04-03 10:16 UTC (permalink / raw)
  To: musl, Xing Li; +Cc: wanghongliang

On Fri, Feb 21, 2025 at 07:50:49PM -0500, Rich Felker wrote:
> 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.

I didn't find this patch in our public git repository, is there any
reason or am I coming to the wrong place?

Thanks,
Yao Zi

[1]: https://git.musl-libc.org/cgit/musl/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-03 10:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-15  7:26 [musl] [PATCH] loongarch64: add bits/hwcap.h Xing Li
2025-02-22  0:50 ` Rich Felker
2025-04-03 10:16   ` Yao Zi

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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).