lib: sbi: Improve misa_string() implementation
authorAnup Patel <anup.patel@wdc.com>
Tue, 5 May 2020 06:16:25 +0000 (11:46 +0530)
committerAnup Patel <anup@brainfault.org>
Thu, 7 May 2020 03:38:26 +0000 (09:08 +0530)
commitdc38929dfb441cbecb4e31a299b463bac11d02cf
tree73b55b2c283c54634ef99a343ec5c745e6f82baf
parent5338679ff043d68f5c26265de144e5ec54109724
lib: sbi: Improve misa_string() implementation

The RISC-V ISA string does not follow alphabetical order. Instead,
we have a RISC-V specific ordering of extensions in the RISC-V ISA
string. This patch improves misa_string() implementation to return
a valid RISC-V ISA string.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
include/sbi/riscv_asm.h
lib/sbi/riscv_asm.c
lib/sbi/sbi_init.c