Received: from eggs.gnu.org ([208.118.235.92]:44304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRH7d-0006Nc-Tv for qemu-devel@nongnu.org; Thu, 25 Oct 2012 02:40:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRH7c-0004So-OF for qemu-devel@nongnu.org; Thu, 25 Oct 2012 02:40:53 -0400 Received: from indium.canonical.com ([91.189.90.7]:38012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRH7c-0004S7-HL for qemu-devel@nongnu.org; Thu, 25 Oct 2012 02:40:52 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TRH7b-00019l-GF for ; Thu, 25 Oct 2012 06:40:51 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 695052E800D for ; Thu, 25 Oct 2012 06:40:51 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 25 Oct 2012 06:31:06 -0000 From: Nikita Kanunnikov Sender: bounces@canonical.com References: <20121025063106.580.9101.malonedeb@chaenomeles.canonical.com> Message-Id: <20121025063106.580.9101.malonedeb@chaenomeles.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1071149] [NEW] 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 Public bug reported: 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. ** Affects: qemu Importance: Undecided Status: New -- = 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: New 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