diff options
| author | Anup Patel <[email protected]> | 2023-07-05 12:23:57 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-07-09 11:06:28 +0530 |
| commit | 72b9c8ff89a963bcec0a7f41fc679ee5246efd01 (patch) | |
| tree | f6237ab8a6f551d9fcffff5000e797a4a83b4f37 /lib | |
| parent | 669089c5f291f5543db1c46e8d6b04ffe49e9576 (diff) | |
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 <[email protected]>
Reviewed-by: Xiang W <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sbi/sbi_hart.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/sbi/sbi_hart.c b/lib/sbi/sbi_hart.c index ff6f5826..2eacefb1 100644 --- a/lib/sbi/sbi_hart.c +++ b/lib/sbi/sbi_hart.c @@ -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"; |
