From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXWFz-00026k-NQ for qemu-devel@nongnu.org; Fri, 26 Sep 2014 10:12:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXWFt-0002ts-JH for qemu-devel@nongnu.org; Fri, 26 Sep 2014 10:12:23 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:6596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXWFt-0002rW-E2 for qemu-devel@nongnu.org; Fri, 26 Sep 2014 10:12:17 -0400 Message-ID: <54257439.7040707@imgtec.com> Date: Fri, 26 Sep 2014 15:12:09 +0100 From: Leon Alrae MIME-Version: 1.0 References: <1403882530-47821-1-git-send-email-leon.alrae@imgtec.com> <1403882530-47821-5-git-send-email-leon.alrae@imgtec.com> <54255FA6.3020400@imgtec.com> In-Reply-To: <54255FA6.3020400@imgtec.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 04/21] target-mips: move LL and SC instructions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: James Hogan , qemu-devel@nongnu.org Cc: yongbok.kim@imgtec.com, cristian.cuna@imgtec.com, aurelien@aurel32.net, rth@twiddle.net Hi James, On 26/09/2014 13:44, James Hogan wrote: > Hi Leon, > > On 27/06/14 16:21, Leon Alrae wrote: >> @@ -1215,6 +1217,8 @@ const struct mips_opcode mips_builtin_opcodes[] = >> them first. The assemblers uses a hash table based on the >> instruction name anyhow. */ >> /* name, args, match, mask, pinfo, membership */ >> +{"ll", "t,o(b)", 0x7c000036, 0xfc00003f, LDD|RD_b|WR_t, 0, I32R6}, >> +{"sc", "t,o(b)", 0x7c000026, 0xfc00003f, LDD|RD_b|WR_t, 0, I32R6}, > > Doesn't bit 6 need to be 0 too for these, so mask should be 0xfc00007f? Yes, good spot. > Again, do these strictly have to be at the beginning? I know sc aliases > dmod.g, but that's right at the end of the table. > >> @@ -15121,7 +15144,8 @@ static void decode_opc (CPUMIPSState *env, DisasContext *ctx) >> break; >> case OPC_DDIV_G_2E ... OPC_DDIVU_G_2E: >> case OPC_DMULT_G_2E ... OPC_DMULTU_G_2E: >> - case OPC_DMOD_G_2E ... OPC_DMODU_G_2E: >> + case OPC_DMODU_G_2E: >> + check_insn_opc_removed(ctx, ISA_MIPS32R6); > > AFAICT you remove this check_insn_opc_removed line again in patch 6, so > I don't think you need to add it here. Yeah, I wrote this line before I decided to split SPECIAL* into separate functions. I will remove it as it is not needed. Thanks, Leon