RISC-V: hwprobe: sort EXT_KEY()s in hwprobe_isa_ext0() alphabetically
Currently the entries appear to be in a random order (although according to Palmer he has tried to sort them by key value) which makes it harder to find entries in a growing list, and more likely to have conflicts as all patches are adding to the end of the list. Sort them alphabetically instead. Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Clément Léger <cleger@rivosinc.com> Link: https://lore.kernel.org/r/20240717-dedicate-squeamish-7e4ab54df58f@spud Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
This commit is contained in:
parent
6a4aa4c94b
commit
3d8d459c8b
@ -93,44 +93,45 @@ static void hwprobe_isa_ext0(struct riscv_hwprobe *pair,
|
|||||||
* regardless of the kernel's configuration, as no other checks, besides
|
* regardless of the kernel's configuration, as no other checks, besides
|
||||||
* presence in the hart_isa bitmap, are made.
|
* presence in the hart_isa bitmap, are made.
|
||||||
*/
|
*/
|
||||||
|
EXT_KEY(ZACAS);
|
||||||
|
EXT_KEY(ZAWRS);
|
||||||
EXT_KEY(ZBA);
|
EXT_KEY(ZBA);
|
||||||
EXT_KEY(ZBB);
|
EXT_KEY(ZBB);
|
||||||
EXT_KEY(ZBS);
|
|
||||||
EXT_KEY(ZICBOZ);
|
|
||||||
EXT_KEY(ZBC);
|
EXT_KEY(ZBC);
|
||||||
|
|
||||||
EXT_KEY(ZBKB);
|
EXT_KEY(ZBKB);
|
||||||
EXT_KEY(ZBKC);
|
EXT_KEY(ZBKC);
|
||||||
EXT_KEY(ZBKX);
|
EXT_KEY(ZBKX);
|
||||||
|
EXT_KEY(ZBS);
|
||||||
|
EXT_KEY(ZCA);
|
||||||
|
EXT_KEY(ZCB);
|
||||||
|
EXT_KEY(ZCMOP);
|
||||||
|
EXT_KEY(ZICBOZ);
|
||||||
|
EXT_KEY(ZICOND);
|
||||||
|
EXT_KEY(ZIHINTNTL);
|
||||||
|
EXT_KEY(ZIHINTPAUSE);
|
||||||
|
EXT_KEY(ZIMOP);
|
||||||
EXT_KEY(ZKND);
|
EXT_KEY(ZKND);
|
||||||
EXT_KEY(ZKNE);
|
EXT_KEY(ZKNE);
|
||||||
EXT_KEY(ZKNH);
|
EXT_KEY(ZKNH);
|
||||||
EXT_KEY(ZKSED);
|
EXT_KEY(ZKSED);
|
||||||
EXT_KEY(ZKSH);
|
EXT_KEY(ZKSH);
|
||||||
EXT_KEY(ZKT);
|
EXT_KEY(ZKT);
|
||||||
EXT_KEY(ZIHINTNTL);
|
|
||||||
EXT_KEY(ZTSO);
|
EXT_KEY(ZTSO);
|
||||||
EXT_KEY(ZACAS);
|
|
||||||
EXT_KEY(ZICOND);
|
|
||||||
EXT_KEY(ZIHINTPAUSE);
|
|
||||||
EXT_KEY(ZIMOP);
|
|
||||||
EXT_KEY(ZCA);
|
|
||||||
EXT_KEY(ZCB);
|
|
||||||
EXT_KEY(ZCMOP);
|
|
||||||
EXT_KEY(ZAWRS);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* All the following extensions must depend on the kernel
|
* All the following extensions must depend on the kernel
|
||||||
* support of V.
|
* support of V.
|
||||||
*/
|
*/
|
||||||
if (has_vector()) {
|
if (has_vector()) {
|
||||||
EXT_KEY(ZVE32X);
|
|
||||||
EXT_KEY(ZVE32F);
|
|
||||||
EXT_KEY(ZVE64X);
|
|
||||||
EXT_KEY(ZVE64F);
|
|
||||||
EXT_KEY(ZVE64D);
|
|
||||||
EXT_KEY(ZVBB);
|
EXT_KEY(ZVBB);
|
||||||
EXT_KEY(ZVBC);
|
EXT_KEY(ZVBC);
|
||||||
|
EXT_KEY(ZVE32F);
|
||||||
|
EXT_KEY(ZVE32X);
|
||||||
|
EXT_KEY(ZVE64D);
|
||||||
|
EXT_KEY(ZVE64F);
|
||||||
|
EXT_KEY(ZVE64X);
|
||||||
|
EXT_KEY(ZVFH);
|
||||||
|
EXT_KEY(ZVFHMIN);
|
||||||
EXT_KEY(ZVKB);
|
EXT_KEY(ZVKB);
|
||||||
EXT_KEY(ZVKG);
|
EXT_KEY(ZVKG);
|
||||||
EXT_KEY(ZVKNED);
|
EXT_KEY(ZVKNED);
|
||||||
@ -139,16 +140,14 @@ static void hwprobe_isa_ext0(struct riscv_hwprobe *pair,
|
|||||||
EXT_KEY(ZVKSED);
|
EXT_KEY(ZVKSED);
|
||||||
EXT_KEY(ZVKSH);
|
EXT_KEY(ZVKSH);
|
||||||
EXT_KEY(ZVKT);
|
EXT_KEY(ZVKT);
|
||||||
EXT_KEY(ZVFH);
|
|
||||||
EXT_KEY(ZVFHMIN);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (has_fpu()) {
|
if (has_fpu()) {
|
||||||
EXT_KEY(ZFH);
|
|
||||||
EXT_KEY(ZFHMIN);
|
|
||||||
EXT_KEY(ZFA);
|
|
||||||
EXT_KEY(ZCD);
|
EXT_KEY(ZCD);
|
||||||
EXT_KEY(ZCF);
|
EXT_KEY(ZCF);
|
||||||
|
EXT_KEY(ZFA);
|
||||||
|
EXT_KEY(ZFH);
|
||||||
|
EXT_KEY(ZFHMIN);
|
||||||
}
|
}
|
||||||
#undef EXT_KEY
|
#undef EXT_KEY
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user