target-mips: Fix Loongson multimedia instructions.

Needed to emit FPU exception on Loongson multimedia instructions
executing if Status:CU1 is clear. or FPR changes may be missed
on Linux.

Backports commit b5a587b613f6151c2ce164552579ae64f2ddfd1c from qemu
This commit is contained in:
Heiher 2018-03-01 09:03:47 -05:00 committed by Lioncash
parent 12a8570cbe
commit b5468b4b22
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -3928,6 +3928,7 @@ static void gen_loongson_multimedia(DisasContext *ctx, int rd, int rs, int rt)
break;
}
check_cp1_enabled(ctx);
gen_load_fpr64(ctx, t0, rs);
gen_load_fpr64(ctx, t1, rt);