From: Aurelien Jarno Date: Wed, 30 Jun 2010 18:00:31 +0000 (+0200) Subject: target-mips: fix DINSU instruction X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~7502 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6fbab869257a87d9d80dec1a094827952448f27f;p=sdk%2Femulator%2Fqemu.git target-mips: fix DINSU instruction Signed-off-by: Aurelien Jarno --- diff --git a/target-mips/translate.c b/target-mips/translate.c index 8531d6c..804b6e4 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -2764,7 +2764,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);