RISCV: fpu_sharing mode #72128
Labels
area: RISCV
RISCV Architecture (32-bit & 64-bit)
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
In the isr.S file in the riscv directory, after the fpu_sharling function is enabled, the system reads the value of the csr register mcause to determine whether the current exception belongs to the fpu operation. In this file, the system directly compares the value of mcause with that of 2 to determine whether to enter the jump. However, the actual mcause value is only used to determine the low 7bit, other bits may exist other values, resulting in the program can not jump normally
`
`
The text was updated successfully, but these errors were encountered: