]> git.baikalelectronics.ru Git - uboot.git/commit
riscv: Update supports_extension() to use desc from cpu driver
authorBin Meng <bmeng.cn@gmail.com>
Wed, 12 Dec 2018 14:12:38 +0000 (06:12 -0800)
committerAndes <uboot@andestech.com>
Tue, 18 Dec 2018 01:56:27 +0000 (09:56 +0800)
commit5a5203d6cea62e6872f056ada07f8782727ab5fb
treea8dd18c0e493e9614a4e7331dd832d945ad963de
parent9ad2233b8813fd8ae8e732c7441d2e1dfed06425
riscv: Update supports_extension() to use desc from cpu driver

This updates supports_extension() implementation to use the desc
string from the cpu driver whenever possible, which avoids the
reading of misa CSR for S-mode U-Boot.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: Anup Patel <anup@brainfault.org>
arch/riscv/cpu/cpu.c