From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MAkbR-0006zJ-IQ for qemu-devel@nongnu.org; Sun, 31 May 2009 08:57:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MAkbM-0006t9-8P for qemu-devel@nongnu.org; Sun, 31 May 2009 08:57:29 -0400 Received: from [199.232.76.173] (port=40815 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAkbM-0006t3-2c for qemu-devel@nongnu.org; Sun, 31 May 2009 08:57:24 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:61017) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MAkbL-0007jq-Bp for qemu-devel@nongnu.org; Sun, 31 May 2009 08:57:23 -0400 Subject: Re: [Qemu-devel] Re: [PATCH 1/3] m68k: allow fpu to manage double single data type. From: Laurent Vivier In-Reply-To: References: <1243731021-23692-1-git-send-email-laurent@vivier.eu> <1243731021-23692-2-git-send-email-laurent@vivier.eu> Content-Type: text/plain; charset=utf-8 Date: Sun, 31 May 2009 14:57:12 +0200 Message-Id: <1243774632.5668.4.camel@Quad> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas Schwab Cc: qemu-devel@nongnu.org Le dimanche 31 mai 2009 =C3=A0 14:03 +0200, Andreas Schwab a =C3=A9crit : > Laurent Vivier writes: >=20 > > + if ((insn & 7) =3D=3D 4) { > > + src =3D gen_load64(s, tcg_const_i32(s->pc)); > > + s->pc +=3D 8; >=20 > This is wrong, it doesn't check that this is indeed a 7.4 addressing > mode, but will match any other mode with register 4. >=20 > > + case 7: > > + offset =3D ldsw_code(s->pc); > > + offset +=3D s->pc - 2; > > + s->pc +=3D 2; > > + tcg_gen_addi_i32(tmp32, tmp32, offset); > > + break; >=20 > Btw, this is still broken, pc-rel addressing surely does not want the > contents of register a2 added in (and the 68k supports all the indexed > modes as well). All non-immediate addresses should probably be handled > by gen_lea. Yes, I agree, I rework this part. Laurent