lib: sbi: Add BUG() macro for csr_read/write_num() and misa_string()
authorXiang W <wxjstz@126.com>
Thu, 16 Sep 2021 04:32:50 +0000 (12:32 +0800)
committerAnup Patel <anup@brainfault.org>
Wed, 22 Sep 2021 08:08:39 +0000 (13:38 +0530)
commit51113fe2a5ac6b5a712f2e5393347bf24194c09b
treed5fb9d741b86020918219cd6b1b290622c991eaa
parent12753d22563f7d2d01f2c6644c7b66b06eb5c90f
lib: sbi: Add BUG() macro for csr_read/write_num() and misa_string()

We use BUG() macro in csr_read_num(), csr_write_num(), and
misa_string() functions for unhandled cases.

Signed-off-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
lib/sbi/riscv_asm.c