summaryrefslogtreecommitdiff
path: root/drivers/clk/microchip/mpfs_clk_periph.c
diff options
context:
space:
mode:
authorYu Chien Peter Lin <peterlin@andestech.com>2022-11-05 14:02:14 +0800
committerLeo Yu-Chi Liang <ycliang@andestech.com>2022-11-15 15:37:17 +0800
commitc277c787a09254ebdf919c7cfc94631fe854677d (patch)
treeccddb10d9ec9df6d43bc2c7ec481b577db1c045c /drivers/clk/microchip/mpfs_clk_periph.c
parent3f3527044d7460543b69931c3385925119dcf945 (diff)
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 <peterlin@andestech.com> Reviewed-by: Rick Chen <rick@andestech.com> Reviewed-by: Padmarao Begari <padmarao.begari@microchip.com> Reviewed-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'drivers/clk/microchip/mpfs_clk_periph.c')
0 files changed, 0 insertions, 0 deletions