Re: [PATCH v3 2/2] target/loongarch: Fix emulation of float-point disable exception

2022-11-04 Thread Richard Henderson
On 11/4/22 15:05, Rui Wang wrote: +#ifndef CONFIG_USER_ONLY +#define CHECK_FPE do { \ +if ((ctx->base.tb->flags & HW_FLAGS_EUEN_FPE) == 0) { \ +generate_exception(ctx, EXCCODE_FPD); \ +return false; \ +} \ +} while (0) +#else +#define CHECK_FPE +#endif + static bool gen_

[PATCH v3 2/2] target/loongarch: Fix emulation of float-point disable exception

2022-11-03 Thread Rui Wang
We need to emulate it to generate a floating point disable exception when CSR.EUEN.FPE is zero. Reviewed-by: Richard Henderson Reviewed-by: Song Gao Signed-off-by: Rui Wang --- target/loongarch/cpu.c| 2 ++ target/loongarch/cpu.h| 2 ++ .../loo