diff options
author | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2013-05-08 16:09:04 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2013-05-08 18:03:31 +0200 |
commit | 639eadb9a32775e1c70bbf37d347972ca41128d1 (patch) | |
tree | bafa4edbefd1bf20f28f1cb45feb1e80e813b538 /target-mips | |
parent | 15d23fb96656b1ae31bf4305b2108230c29298c6 (diff) | |
download | qemu-639eadb9a32775e1c70bbf37d347972ca41128d1.zip qemu-639eadb9a32775e1c70bbf37d347972ca41128d1.tar.gz qemu-639eadb9a32775e1c70bbf37d347972ca41128d1.tar.bz2 |
target-mips: add missing check_dspr2 for multiply instructions
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>
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 b7f8203..0a53203 100644 --- 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); |