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

10 Nov
2022
10 Nov
'22
8:45 a.m.
From: U-Boot u-boot-bounces@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: samuel@sholland.org; Peter Yu-Chien Lin(林宇謙) peterlin@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 peterlin@andestech.com
arch/riscv/cpu/cpu.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)
Reviewed-by: Rick Chen rick@andestech.com
910
Age (days ago)
910
Last active (days ago)
0 comments
1 participants
participants (1)
-
Rick Chen