Re: [PATCH] riscv: Fix detecting FPU support in standard extension

2022-11-04 Thread Yu-Chien Peter Lin
On Fri, Nov 04, 2022 at 11:39:43PM -0500, Samuel Holland wrote: > On 11/4/22 06:21, Yu Chien Peter Lin wrote: > > 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

Re: [PATCH] riscv: Fix detecting FPU support in standard extension

2022-11-04 Thread Samuel Holland
On 11/4/22 06:21, Yu Chien Peter Lin wrote: > 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

[PATCH] riscv: Fix detecting FPU support in standard extension

2022-11-04 Thread Yu Chien Peter Lin
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