diff options
author | Heiher <wangr@lemote.com> | 2016-10-13 15:10:32 +0800 |
---|---|---|
committer | Yongbok Kim <yongbok.kim@imgtec.com> | 2016-12-04 00:56:29 +0000 |
commit | b5a587b613f6151c2ce164552579ae64f2ddfd1c (patch) | |
tree | 68c62d17e7153a0f602ef1fac8b2e34708308be8 /target-mips | |
parent | bb7cab5f3466540f5603b209c0df2e27a02fbb95 (diff) | |
download | qemu-b5a587b613f6151c2ce164552579ae64f2ddfd1c.tar.gz qemu-b5a587b613f6151c2ce164552579ae64f2ddfd1c.tar.bz2 qemu-b5a587b613f6151c2ce164552579ae64f2ddfd1c.zip |
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.
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>
Diffstat (limited to 'target-mips')
-rw-r--r-- | target-mips/translate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c index e26f74274b..57b824ff2d 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -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); |