diff options
author | Anup Patel <apatel@ventanamicro.com> | 2023-07-12 22:04:57 +0530 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2023-07-20 15:59:29 +0100 |
commit | b346fabe6d2c4cc8e926fd0a0bbc7bc1758963e6 (patch) | |
tree | c0b644dd578c738c71844d529cf1da70173199c9 | |
parent | a416fdc2e664b8b8faf653fec636f93c187d2529 (diff) | |
download | kvmtool-b346fabe6d2c4cc8e926fd0a0bbc7bc1758963e6.tar.gz |
riscv: Sort the ISA extension array alphabetically
Let us follow alphabetical order for listing ISA extensions in
the isa_info_arr[] array.
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Link: https://lore.kernel.org/r/20230712163501.1769737-6-apatel@ventanamicro.com
Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r-- | riscv/fdt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/riscv/fdt.c b/riscv/fdt.c index 3cdb95ca..977e9628 100644 --- a/riscv/fdt.c +++ b/riscv/fdt.c @@ -15,11 +15,12 @@ struct isa_ext_info { }; struct isa_ext_info isa_info_arr[] = { - {"svpbmt", KVM_RISCV_ISA_EXT_SVPBMT}, + /* sorted alphabetically */ {"sstc", KVM_RISCV_ISA_EXT_SSTC}, {"svinval", KVM_RISCV_ISA_EXT_SVINVAL}, - {"zihintpause", KVM_RISCV_ISA_EXT_ZIHINTPAUSE}, + {"svpbmt", KVM_RISCV_ISA_EXT_SVPBMT}, {"zicbom", KVM_RISCV_ISA_EXT_ZICBOM}, + {"zihintpause", KVM_RISCV_ISA_EXT_ZIHINTPAUSE}, }; static void dump_fdt(const char *dtb_file, void *fdt) |