Received: from eggs.gnu.org ([2001:4830:134:3::10]:42075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEGpu-0003FK-To for qemu-devel@nongnu.org; Tue, 27 Aug 2013 06:49:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEGpo-0007I8-9T for qemu-devel@nongnu.org; Tue, 27 Aug 2013 06:49:22 -0400 Received: from hall.aurel32.net ([2001:470:1f0b:4a8::1]:55181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEGpo-0006b1-3S for qemu-devel@nongnu.org; Tue, 27 Aug 2013 06:49:16 -0400 Date: Tue, 27 Aug 2013 12:47:46 +0200 From: Aurelien Jarno Message-ID: <20130827104746.GB5908@ohm.aurel32.net> References: <1377550812-908-1-git-send-email-rth@twiddle.net> <1377550812-908-6-git-send-email-rth@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PULL 5/7] tcg: Add mmu helpers that take a return address argument List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , Anthony Liguori , Richard Henderson On Tue, Aug 27, 2013 at 12:26:00AM +0100, Peter Maydell wrote: > On 26 August 2013 22:00, Richard Henderson wrote: > > Allow the code that tcg generates to be less obtuse, passing in > > the return address directly instead of computing it in the helper. > > > +uint8_t helper_ret_ldb_mmu(CPUArchState *env, target_ulong addr, > > + int mmu_idx, uintptr_t retaddr); > > > uint8_t helper_ldb_mmu(CPUArchState *env, target_ulong addr, int mmu_idx); > > I thought the reason we did it this way round was to avoid having > so many arguments to helpers that we overflowed registers and > into the stack on some calling conventions? Or does this not make > much difference in practice? > That was indeed the idea, but I think it's a good idea to provide this alternative for architectures supporting enough arguments in registers. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net