OSDN Git Service

target/loongarch: Fix macros SET_FPU_* in cpu.h
authorQi Hu <huqi@loongson.cn>
Thu, 4 Aug 2022 13:24:50 +0000 (21:24 +0800)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 5 Aug 2022 15:18:30 +0000 (08:18 -0700)
commit00952d93e0ad3aaba3886803c812549626ac214a
treed462cc070d81bb0b7e1b407ed3c2416fcf4c15da
parent09ed077d7fae5f825e18ff9a2004dcdd1b165edb
target/loongarch: Fix macros SET_FPU_* in cpu.h

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 <huqi@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20220804132450.314329-1-huqi@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/loongarch/cpu.h