Received: from eggs.gnu.org ([208.118.235.92]:44982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRKK8-00070h-F7 for qemu-devel@nongnu.org; Thu, 25 Oct 2012 06:06:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRKK2-0003aX-M9 for qemu-devel@nongnu.org; Thu, 25 Oct 2012 06:06:00 -0400 Received: from indium.canonical.com ([91.189.90.7]:60226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRKK2-0003aT-Gb for qemu-devel@nongnu.org; Thu, 25 Oct 2012 06:05:54 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TRKK1-0006Ps-PF for ; Thu, 25 Oct 2012 10:05:53 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id B29652E807B for ; Thu, 25 Oct 2012 10:05:53 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 25 Oct 2012 09:51:38 -0000 From: Aurelien Jarno Sender: bounces@canonical.com References: <20121025063106.580.9101.malonedeb@chaenomeles.canonical.com> Message-Id: <20121025095138.9418.71960.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1071149] Re: target-mips: special3 instruction dinsm translation error Reply-To: Bug 1071149 <1071149@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Indeed the (lsb > msb) case is wrong and should be removed. I'll post a patch about that later this week. ** Changed in: qemu Status: Invalid =3D> Confirmed -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1071149 Title: target-mips: special3 instruction dinsm translation error Status in QEMU: Confirmed Bug description: Function decode_opc() in translate.c calls function gen_bitops(), which has such prototype: /* special3 bitfield operations */ static void gen_bitops (DisasContext *ctx, uint32_t opc, int rt, int rs, int lsb, int msb) The code for DINSM instruction is: case OPC_DINSM ... OPC_DINS: check_insn(env, ctx, ISA_MIPS64R2); check_mips_64(ctx); gen_bitops(ctx, op1, rt, rs, sa, rd); break; But rd =E2=89=A0 msb according to MIPS64R2 standard, rd =3D msb - 32. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1071149/+subscriptions