OSDN Git Service

target-mips: Fix Loongson multimedia instructions.
authorHeiher <wangr@lemote.com>
Thu, 13 Oct 2016 07:10:32 +0000 (15:10 +0800)
committerYongbok Kim <yongbok.kim@imgtec.com>
Sun, 4 Dec 2016 00:56:29 +0000 (00:56 +0000)
Needed to emit FPU exception on Loongson multimedia instructions
executing if Status:CU1 is clear. or FPR changes may be missed
on Linux.

Signed-off-by: Heiher <wangr@lemote.com>
Signed-off-by: Fuxin Zhang <zhangfx@lemote.com>
Reviewed-by: Yongbok Kim <yongbok.kim@imgtec.com>
Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
target-mips/translate.c

index e26f742..57b824f 100644 (file)
@@ -3871,6 +3871,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);