Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L3dpk-0003xc-9h for qemu-devel@nongnu.org; Fri, 21 Nov 2008 16:46:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L3dpj-0003xE-CT for qemu-devel@nongnu.org; Fri, 21 Nov 2008 16:46:35 -0500 Received: from [199.232.76.173] (port=49686 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3dpj-0003x5-89 for qemu-devel@nongnu.org; Fri, 21 Nov 2008 16:46:35 -0500 Received: from hall.aurel32.net ([88.191.82.174]:38695) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L3dpi-0006M5-PD for qemu-devel@nongnu.org; Fri, 21 Nov 2008 16:46:35 -0500 Received: from volta-wlan.aurel32.net ([2002:52e8:2fb:ffff:21d:e0ff:fe49:1047] helo=volta.aurel32.net) by hall.aurel32.net with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1L3dpg-0001mp-Vt for qemu-devel@nongnu.org; Fri, 21 Nov 2008 22:46:33 +0100 Received: from aurel32 by volta.aurel32.net with local (Exim 4.69) (envelope-from ) id 1L3dpg-00076p-FA for qemu-devel@nongnu.org; Fri, 21 Nov 2008 22:46:32 +0100 Date: Fri, 21 Nov 2008 22:46:32 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] Re: [PATCH 1/2] target-sh4: fix 64-bit fmov to/from memory Message-ID: <20081121214632.GQ21493@volta.aurel32.net> References: <1227297342-5285-1-git-send-email-mans@mansr.com> <20081121203850.GA25280@hall.aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Fri, Nov 21, 2008 at 09:24:03PM +0000, Måns Rullgård wrote: > Aurelien Jarno writes: > > > On Fri, Nov 21, 2008 at 07:55:41PM +0000, Mans Rullgard wrote: > >> When loading/storing a register pair, the even-numbered register > >> always maps to the low 32 bits of memory independently of target > >> endian configuration. > >> > >> Signed-off-by: Mans Rullgard > >> --- > >> target-sh4/translate.c | 63 ++++++++++++++++++++++++----------------------- > >> 1 files changed, 32 insertions(+), 31 deletions(-) > >> > >> diff --git a/target-sh4/translate.c b/target-sh4/translate.c > >> index 84a3f40..2d6dfe6 100644 > >> --- a/target-sh4/translate.c > >> +++ b/target-sh4/translate.c > >> @@ -991,31 +991,35 @@ static void _decode_opc(DisasContext * ctx) > >> return; > >> case 0xf00a: /* fmov {F,D,X}Rm,@Rn - FPSCR: Nothing */ > >> if (ctx->fpscr & FPSCR_SZ) { > >> - TCGv_i64 fp = tcg_temp_new_i64(); > >> - gen_load_fpr64(fp, XREG(B7_4)); > >> - tcg_gen_qemu_st64(fp, REG(B11_8), ctx->memidx); > >> - tcg_temp_free_i64(fp); > >> + TCGv addr_hi = tcg_temp_new(); > >> + int fr = XREG(B7_4); > >> + tcg_gen_addi_i32(addr_hi, REG(B11_8), 4); > >> + tcg_gen_qemu_st32(cpu_fregs[fr ], REG(B11_8), ctx->memidx); > >> + tcg_gen_qemu_st32(cpu_fregs[fr+1], addr_hi, ctx->memidx); > >> + tcg_temp_free(addr_hi); > > > > You are totally breaking the indendation. Care to resend this patch with > > a proper indentation? > > I was told to use spaces for indentation even if surrounding code uses > tabs. I'll be happy to convert it to tabs if that's what you want. > The current file use tabs. While it is not consistent with other qemu files, I think mixed indentation is even worse. Please use tabs in your patch, and if you really like to you can send a patch to convert the indentation of the whole file to spaces, but please do it in a separate patch. -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net