Commit f48a2cb2 authored by Yongbok Kim's avatar Yongbok Kim Committed by Aleksandar Markovic
Browse files

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.

Signed-off-by: default avatarYongbok Kim <yongbok.kim@mips.com>
Reviewed-by: default avatarAleksandar Markovic <aleksandar.markovic@mips.com>
Signed-off-by: default avatarAleksandar Markovic <aleksandar.markovic@mips.com>
parent 4f917406
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2627,6 +2627,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));
        break;
    default:
        if (env->insn_flags & ISA_MIPS32R6) {
            do_raise_exception(env, EXCP_RI, GETPC());
        }
        return;
    }
    restore_fp_status(env);