projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15d23fb
)
target-mips: add missing check_dspr2 for multiply instructions
author
Petar Jovanovic
<petar.jovanovic@imgtec.com>
Wed, 8 May 2013 14:09:04 +0000
(16:09 +0200)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Wed, 8 May 2013 16:03:31 +0000
(18:03 +0200)
The emulator needs to check in hflags if DSP unit has been turned off before
it generates code for MUL_PH, MUL_S_PH, MULQ_S_W, and MULQ_RS_W.
Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips/translate.c
patch
|
blob
|
history
diff --git
a/target-mips/translate.c
b/target-mips/translate.c
index b7f8203e57ce6deed1890689aef3be21fa1cf288..0a53203ce9e0d5157194bb80243766705ca3220e 100644
(file)
--- a/
target-mips/translate.c
+++ b/
target-mips/translate.c
@@
-13400,6
+13400,7
@@
static void gen_mipsdsp_multiply(DisasContext *ctx, uint32_t op1, uint32_t op2,
/* OPC_MULT_G_2E, OPC_ADDUH_QB_DSP, OPC_MUL_PH_DSP have
* the same mask and op1. */
case OPC_MULT_G_2E:
+ check_dspr2(ctx);
switch (op2) {
case OPC_MUL_PH:
gen_helper_mul_ph(cpu_gpr[ret], v1_t, v2_t, cpu_env);