lib: sbi: Alphabetically sort HART ISA extensions

Let us follow alphabetical order for HART ISA extension so that
it is simpler to maintain.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Xiang W <wxjstz@126.com>
This commit is contained in:
Anup Patel
2023-07-05 12:23:57 +05:30
committed by Anup Patel
parent 669089c5f2
commit 72b9c8ff89
2 changed files with 13 additions and 13 deletions

View File

@@ -438,20 +438,20 @@ static inline char *sbi_hart_extension_id2string(int ext)
char *estr = NULL;
switch (ext) {
case SBI_HART_EXT_SSCOFPMF:
estr = "sscofpmf";
break;
case SBI_HART_EXT_ZICNTR:
estr = "zicntr";
break;
case SBI_HART_EXT_SMAIA:
estr = "smaia";
break;
case SBI_HART_EXT_SMSTATEEN:
estr = "smstateen";
break;
case SBI_HART_EXT_SSCOFPMF:
estr = "sscofpmf";
break;
case SBI_HART_EXT_SSTC:
estr = "sstc";
break;
case SBI_HART_EXT_SMSTATEEN:
estr = "smstateen";
case SBI_HART_EXT_ZICNTR:
estr = "zicntr";
break;
case SBI_HART_EXT_ZIHPM:
estr = "zihpm";