> From: U-Boot <u-boot-boun...@lists.denx.de> On Behalf Of Yu Chien Peter Lin > Sent: Saturday, November 05, 2022 2:02 PM > To: u-boot@lists.denx.de > Cc: sam...@sholland.org; Peter Yu-Chien Lin(林宇謙) <peter...@andestech.com> > Subject: [PATCH v2] riscv: Fix detecting FPU support in standard extension > > We should check the string until it hits underscore, in case it searches for > the letters in the custom extension. 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 <peter...@andestech.com> > --- > arch/riscv/cpu/cpu.c | 14 +++++++++++--- > 1 file changed, 11 insertions(+), 3 deletions(-)
Reviewed-by: Rick Chen <r...@andestech.com>