Re: [PATCH] target/loongarch: Remove cpu_fcsr0

2022-08-06 Thread huqi
> On Aug 7, 2022, at 01:09, Richard Henderson > wrote: > All of the fpu operations are defined with TCG_CALL_NO_WG, but they > all modify FCSR0. The most efficient way to fix this is to remove > cpu_fcsr0, and instead use explicit load and store operations for the > two instructions that man

Re: [PATCH] target/loongarch: Fix "movfcsr2gr" gets wrong value

2022-08-06 Thread huqi
> On Aug 7, 2022, at 00:18, Richard Henderson > wrote: > > On 8/6/22 06:34, Qi Hu wrote: >> In follow sequence: >> movgr2fcsr $r0,$r0 >> movgr2fr.d $f0,$r0 >> fdiv.d $f0,$f0,$f0 >> movfcsr2gr $r12,$r0 >> The value of $r12 is "0x", but it should be "0x1010"(V flag). >>