Re: [PATCH] target/loongarch: Fix macros SET_FPU_* in cpu.h

2022-08-05 Thread Richard Henderson
On 8/4/22 06:24, Qi Hu wrote: The macros SET_FPU_* are used to set corresponding bits of fcsr. Unfortunately it forgets to set the result and it causes fcsr's "CAUSE" never being updated. This patch is to fix this bug. Signed-off-by: Qi Hu --- target/loongarch/cpu.h | 18 +++---

Re: [PATCH] target/loongarch: Fix macros SET_FPU_* in cpu.h

2022-08-05 Thread gaosong
Cc: Richard Apply to 7.1? On 2022/8/4 下午9:24, Qi Hu wrote: The macros SET_FPU_* are used to set corresponding bits of fcsr. Unfortunately it forgets to set the result and it causes fcsr's "CAUSE" never being updated. This patch is to fix this bug. Signed-off-by: Qi Hu ---

[PATCH] target/loongarch: Fix macros SET_FPU_* in cpu.h

2022-08-04 Thread Qi Hu
The macros SET_FPU_* are used to set corresponding bits of fcsr. Unfortunately it forgets to set the result and it causes fcsr's "CAUSE" never being updated. This patch is to fix this bug. Signed-off-by: Qi Hu --- target/loongarch/cpu.h | 18 +++--- 1 file changed, 15 insertions(+),