OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb7cab5
)
target-mips: Fix Loongson multimedia instructions.
author
Heiher
<wangr@lemote.com>
Thu, 13 Oct 2016 07:10:32 +0000
(15:10 +0800)
committer
Yongbok 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
patch
|
blob
|
history
diff --git
a/target-mips/translate.c
b/target-mips/translate.c
index
e26f742
..
57b824f
100644
(file)
--- 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);