summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2010-06-30 20:00:31 +0200
committerAurelien Jarno <aurelien@aurel32.net>2010-06-30 23:38:04 +0200
commitb6185fc79c10ec5b499c6cd0141f0ab4549e0489 (patch)
treeeba8ae6e9c0ddd99046a7b47fe8ebca713a3b843
parentCorrect definitions for FD_CMD_SAVE and FD_CMD_RESTORE (diff)
downloadqemu-kvm-b6185fc79c10ec5b499c6cd0141f0ab4549e0489.tar.gz
qemu-kvm-b6185fc79c10ec5b499c6cd0141f0ab4549e0489.tar.bz2
qemu-kvm-b6185fc79c10ec5b499c6cd0141f0ab4549e0489.zip
target-mips: fix DINSU instruction
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r--target-mips/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c
index f811f50c7..43f5bb944 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -2761,7 +2761,7 @@ static void gen_bitops (DisasContext *ctx, uint32_t opc, int rt,
case OPC_DINSU:
if (lsb > msb)
goto fail;
- mask = ((1ULL << (msb - lsb + 1)) - 1) << lsb;
+ mask = ((1ULL << (msb - lsb + 1)) - 1) << (lsb + 32);
gen_load_gpr(t0, rt);
tcg_gen_andi_tl(t0, t0, ~mask);
tcg_gen_shli_tl(t1, t1, lsb + 32);