]> Git Repo - J-u-boot.git/commit
riscv: Fix detecting FPU support in standard extension
authorYu Chien Peter Lin <[email protected]>
Sat, 5 Nov 2022 06:02:14 +0000 (14:02 +0800)
committerLeo Yu-Chi Liang <[email protected]>
Tue, 15 Nov 2022 07:37:17 +0000 (15:37 +0800)
commitc277c787a09254ebdf919c7cfc94631fe854677d
treeccddb10d9ec9df6d43bc2c7ec481b577db1c045c
parent3f3527044d7460543b69931c3385925119dcf945
riscv: Fix detecting FPU support in standard extension

We should check the string until it hits underscore, in case it
searches multi-letter extensions. For example, "rv64imac_xandes"
will be treated as D extension support since there is a "d" in
"andes", resulting illegal instruction caused by initializing FCSR.

Signed-off-by: Yu Chien Peter Lin <[email protected]>
Reviewed-by: Rick Chen <[email protected]>
Reviewed-by: Padmarao Begari <[email protected]>
Reviewed-by: Samuel Holland <[email protected]>
arch/riscv/cpu/cpu.c
This page took 0.03296 seconds and 4 git commands to generate.