Skip to content
Commit c277c787 authored by Yu Chien Peter Lin's avatar Yu Chien Peter Lin Committed by Leo Yu-Chi Liang
Browse files

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: default avatarYu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: default avatarRick Chen <rick@andestech.com>
Reviewed-by: default avatarPadmarao Begari <padmarao.begari@microchip.com>
Reviewed-by: default avatarSamuel Holland <samuel@sholland.org>
parent 3f352704
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment