[PATCH v2 3/3] AArch64: Remove unused MIDR entries

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Thu Mar 19 12:03:58 GMT 2026



On 16/03/26 14:29, Wilco Dijkstra wrote:
> v2: Split patch
> 
> Remove the now unused eMAG MIDR check and unused entries from cpu_list[].
> 
> Passes regress, OK for commit?

LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

> 
> ---
> 
> diff --git a/sysdeps/aarch64/cpu-features.h b/sysdeps/aarch64/cpu-features.h
> index 1fe35d986b14a14fd55d6e4d3ac59fbb21e55f71..2957cd9c255bdb811a84b6b0fb3e8ab193d62233 100644
> --- a/sysdeps/aarch64/cpu-features.h
> +++ b/sysdeps/aarch64/cpu-features.h
> @@ -40,9 +40,6 @@
>  #define MIDR_IMPLEMENTOR(midr)	\
>  	(((midr) & MIDR_IMPLEMENTOR_MASK) >> MIDR_IMPLEMENTOR_SHIFT)
>  
> -#define IS_EMAG(midr) (MIDR_IMPLEMENTOR(midr) == 'P'			      \
> -                       && MIDR_PARTNUM(midr) == 0x000)
> -
>  #define IS_KUNPENG920(midr) (MIDR_IMPLEMENTOR(midr) == 'H'			   \
>                          && MIDR_PARTNUM(midr) == 0xd01)
>  
> diff --git a/sysdeps/unix/sysv/linux/aarch64/cpu-features.c b/sysdeps/unix/sysv/linux/aarch64/cpu-features.c
> index 15aed15a667e89abd2790a22a319a8a6aaecba02..70d3272772f5f36a3435d0ae8919d781a1e2412e 100644
> --- a/sysdeps/unix/sysv/linux/aarch64/cpu-features.c
> +++ b/sysdeps/unix/sysv/linux/aarch64/cpu-features.c
> @@ -44,11 +44,6 @@ struct cpu_list
>  static const struct cpu_list cpu_list[] =
>  {
>  #define CPU_LIST_ENTRY(__str, __num) { __str, sizeof (__str) - 1, __num }
> -  CPU_LIST_ENTRY ("thunderxt88",    0x430F0A10),
> -  CPU_LIST_ENTRY ("thunderx2t99",   0x431F0AF0),
> -  CPU_LIST_ENTRY ("thunderx2t99p1", 0x420F5160),
> -  CPU_LIST_ENTRY ("ares",           0x411FD0C0),
> -  CPU_LIST_ENTRY ("emag",           0x503F0001),
>    CPU_LIST_ENTRY ("kunpeng920",     0x481FD010),
>    CPU_LIST_ENTRY ("kunpeng950",     0x480FD060),
>    CPU_LIST_ENTRY ("a64fx",          0x460F0010),
> 



More information about the Libc-alpha mailing list