Skip to content

Commit 2a2105a

Browse files
FlyGoatphilmd
authored andcommitted
target/mips: Don't check COP1X for 64 bit FP mode
Some implementations (i.e. Loongson-2F) may decide to implement a 64 bit FPU without implementing COP1X instructions. As the eligibility of 64 bit FP instructions is already determined by CP0St_FR, there is no need to check for COP1X again. Signed-off-by: Jiaxun Yang <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> [PMD: Add missing trailing parenthesis (buildfix)] Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
1 parent 4bfc895 commit 2a2105a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target/mips/tcg/translate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,7 @@ void check_cop1x(DisasContext *ctx)
15451545
*/
15461546
void check_cp1_64bitmode(DisasContext *ctx)
15471547
{
1548-
if (unlikely(~ctx->hflags & (MIPS_HFLAG_F64 | MIPS_HFLAG_COP1X))) {
1548+
if (unlikely(~ctx->hflags & MIPS_HFLAG_F64)) {
15491549
gen_reserved_instruction(ctx);
15501550
}
15511551
}

0 commit comments

Comments
 (0)