Received: from eggs.gnu.org ([2001:4830:134:3::10]:47220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKrJO-00049L-7w for qemu-devel@nongnu.org; Sun, 17 Jan 2016 12:40:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aKrJN-0002jd-5p for qemu-devel@nongnu.org; Sun, 17 Jan 2016 12:40:22 -0500 Received: from hall.aurel32.net ([2001:bc8:30d7:100::1]:44684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKrJN-0002gs-07 for qemu-devel@nongnu.org; Sun, 17 Jan 2016 12:40:21 -0500 Date: Sun, 17 Jan 2016 18:40:09 +0100 From: Aurelien Jarno Message-ID: <20160117174009.GA24301@aurel32.net> References: <1452700993-6570-1-git-send-email-aurelien@aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH RESEND] softfloat: fix return type of roundAndPackFloat16 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers On 2016-01-15 14:21, Peter Maydell wrote: > On 13 January 2016 at 16:03, Aurelien Jarno wrote: > > The roundAndPackFloat16 function should return a float16 value, not a > > float32 one. Fix that. > > > > Cc: Peter Maydell > > Signed-off-by: Aurelien Jarno > > --- > > fpu/softfloat.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > Peter, given you are working on softfloat patches, you might want to get > > this one merged at the same time. > > > > diff --git a/fpu/softfloat.c b/fpu/softfloat.c > > index f1170fe..acc9099 100644 > > --- a/fpu/softfloat.c > > +++ b/fpu/softfloat.c > > @@ -3368,7 +3368,7 @@ static float16 packFloat16(flag zSign, int_fast16_t zExp, uint16_t zSig) > > | Binary Floating-Point Arithmetic. > > *----------------------------------------------------------------------------*/ > > > > -static float32 roundAndPackFloat16(flag zSign, int_fast16_t zExp, > > +static float16 roundAndPackFloat16(flag zSign, int_fast16_t zExp, > > uint32_t zSig, flag ieee, > > float_status *status) > > { > > Reviewed-by: Peter Maydell > > (a harmless error in the current code but we might as well get it right). It's harmless in the default build, but it fails to build when softfloat type checking is activated. Unfortunately more code with the wrong type has been added recently. -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net