diff options
| author | Heiher | 2016-10-13 09:10:32 +0200 |
|---|---|---|
| committer | Yongbok Kim | 2016-12-04 01:56:29 +0100 |
| commit | b5a587b613f6151c2ce164552579ae64f2ddfd1c (patch) | |
| tree | 68c62d17e7153a0f602ef1fac8b2e34708308be8 | |
| parent | target-mips: Fix Loongson multimedia 'or' instruction. (diff) | |
| download | qemu-b5a587b613f6151c2ce164552579ae64f2ddfd1c.tar.gz qemu-b5a587b613f6151c2ce164552579ae64f2ddfd1c.tar.xz 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>
| -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); |
