mirror of https://gitee.com/openkylin/qemu.git
target-microblaze: Fix trap checks for FPU insns
Fix trap checks for FPU insns when extended FPU insns are enabled. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
59b1a90b0b
commit
5153bb897a
|
@ -1412,7 +1412,7 @@ static void dec_fpu(DisasContext *dc)
|
|||
|
||||
if ((dc->tb_flags & MSR_EE_FLAG)
|
||||
&& (dc->cpu->env.pvr.regs[2] & PVR2_ILL_OPCODE_EXC_MASK)
|
||||
&& (dc->cpu->cfg.use_fpu != 1)) {
|
||||
&& !dc->cpu->cfg.use_fpu) {
|
||||
tcg_gen_movi_tl(cpu_SR[SR_ESR], ESR_EC_ILLEGAL_OP);
|
||||
t_gen_raise_exception(dc, EXCP_HW_EXCP);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue