mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-24 22:35:16 +00:00
target/mips: Raise a RI when given fs is n/a from CTC1
Fix to raise a Reserved Instruction exception when given fs is not available from CTC1. Backports commit f48a2cb21824217a61ec7be797860a0702e5325c from qemu
This commit is contained in:
parent
4abcf14b52
commit
872be901d4
|
@ -2617,6 +2617,9 @@ void helper_ctc1(CPUMIPSState *env, target_ulong arg1, uint32_t fs, uint32_t rt)
|
||||||
(env->active_fpu.fcr31 & ~(env->active_fpu.fcr31_rw_bitmask));
|
(env->active_fpu.fcr31 & ~(env->active_fpu.fcr31_rw_bitmask));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
if (env->insn_flags & ISA_MIPS32R6) {
|
||||||
|
do_raise_exception(env, EXCP_RI, GETPC());
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
restore_fp_status(env);
|
restore_fp_status(env);
|
||||||
|
|
Loading…
Reference in a new issue