Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0thn-0007wr-LE for qemu-devel@nongnu.org; Thu, 22 Oct 2009 05:11:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0thh-0007tj-DP for qemu-devel@nongnu.org; Thu, 22 Oct 2009 05:11:34 -0400 Received: from [199.232.76.173] (port=42309 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0thh-0007te-8Y for qemu-devel@nongnu.org; Thu, 22 Oct 2009 05:11:29 -0400 Received: from smtp.nokia.com ([192.100.105.134]:44937 helo=mgw-mx09.nokia.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N0thg-00073x-RI for qemu-devel@nongnu.org; Thu, 22 Oct 2009 05:11:29 -0400 From: Date: Thu, 22 Oct 2009 11:11:08 +0200 Subject: Re: [Qemu-devel] [PATCH 03/12] target-arm: add support for neon vld1.64 instruction Message-ID: References: <1B2CDBE7-339F-425A-8130-824EB2B23F56@nokia.com> <761ea48b0910220139j1a9d6ab3tb37aba71905e3a64@mail.gmail.com> In-Reply-To: <761ea48b0910220139j1a9d6ab3tb37aba71905e3a64@mail.gmail.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: laurent.desnogues@gmail.com Cc: qemu-devel@nongnu.org On Oct 22, 2009, at 11:39, ext Laurent Desnogues wrote: > On Wed, Oct 21, 2009 at 12:17 PM, wrote: >> Add support for neon vld1.64 instruction. >> >> From: Riku Voipio >> Signed-off-by: Juha Riihim=E4ki >> --- >> diff --git a/target-arm/translate.c b/target-arm/translate.c >> index 3ea9d51..d027572 100644 >> --- a/target-arm/translate.c >> +++ b/target-arm/translate.c >> @@ -795,6 +795,12 @@ static inline TCGv gen_ld32(TCGv addr, int =20 >> index) >> tcg_gen_qemu_ld32u(tmp, addr, index); >> return tmp; >> } >> +static inline TCGv_i64 gen_ld64(TCGv addr, int index) >> +{ >> + TCGv_i64 tmp =3D tcg_temp_new_i64(); >> + tcg_gen_qemu_ld64(tmp, addr, index); >> + return tmp; >> +} >> static inline void gen_st8(TCGv val, TCGv addr, int index) >> { >> tcg_gen_qemu_st8(val, addr, index); >> @@ -810,6 +816,11 @@ static inline void gen_st32(TCGv val, TCGv addr, >> int index) >> tcg_gen_qemu_st32(val, addr, index); >> dead_tmp(val); >> } >> +static inline void gen_st64(TCGv_i64 val, TCGv addr, int index) >> +{ >> + tcg_gen_qemu_st64(val, addr, index); >> + tcg_temp_free_i64(val); >> +} >> >> static inline void gen_set_pc_im(uint32_t val) >> { >> @@ -3690,6 +3701,7 @@ static int disas_neon_ls_insn(CPUState * env, >> DisasContext *s, uint32_t insn) >> TCGv addr; >> TCGv tmp; >> TCGv tmp2; >> + TCGv_i64 tmp64; >> >> if (!vfp_enabled(env)) >> return 1; >> @@ -3702,7 +3714,7 @@ static int disas_neon_ls_insn(CPUState * env, >> DisasContext *s, uint32_t insn) >> /* Load store all elements. */ >> op =3D (insn >> 8) & 0xf; >> size =3D (insn >> 6) & 3; >> - if (op > 10 || size =3D=3D 3) >> + if (op > 10) > > This is wrong: a size of 3 is limited to vld1.64 and vst1.64 which > you don't enforce here. > > Apart from that, the rest looks OK. Thanks, and you're right of course. I'll add a check that will return =20 1 if size equals 3 and interleave or spacing is not 1. Cheers, Juha=