From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=42201 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ODzPu-0001uF-QO for qemu-devel@nongnu.org; Mon, 17 May 2010 08:27:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ODzPs-0000Xz-0F for qemu-devel@nongnu.org; Mon, 17 May 2010 08:27:30 -0400 Received: from mail-wy0-f173.google.com ([74.125.82.173]:48438) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ODzPr-0000X3-R6 for qemu-devel@nongnu.org; Mon, 17 May 2010 08:27:27 -0400 Received: by wyb39 with SMTP id 39so469291wyb.4 for ; Mon, 17 May 2010 05:27:23 -0700 (PDT) Message-ID: <4BF13485.8000903@mvista.com> Date: Mon, 17 May 2010 16:20:21 +0400 From: Dmitry Antipov MIME-Version: 1.0 Subject: [Qemu-devel] [PATCH] MIPS DINSU Content-Type: multipart/mixed; boundary="------------070404010807050808050603" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel This is a multi-part message in MIME format. --------------070404010807050808050603 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Hello, shouldn't it be in that way? Dmitry --------------070404010807050808050603 Content-Type: text/plain; name="qemu-0.12.4-mips_dinsu.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="qemu-0.12.4-mips_dinsu.patch" --- qemu-0.12.4/target-mips/translate.c 2010-05-17 16:12:58.048661610 +0400 +++ qemu-0.12.4/target-mips/translate.c 2010-05-17 16:13:12.281656754 +0400 @@ -2761,7 +2761,7 @@ 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); --------------070404010807050808050603--