From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eC1be-0007Dj-CD for qemu-devel@nongnu.org; Tue, 07 Nov 2017 05:59:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eC1bZ-00041x-En for qemu-devel@nongnu.org; Tue, 07 Nov 2017 05:59:46 -0500 Date: Tue, 7 Nov 2017 19:59:37 +0900 From: Stafford Horne Message-ID: <20171107105937.GM29237@lianli.shorne-pla.net> References: <20171103202624.5956-1-laurent@vivier.eu> <20171103202624.5956-3-laurent@vivier.eu> <20171104212011.GK29237@lianli.shorne-pla.net> <1356a4f9-86a2-7b18-a67b-93dc6dadec4f@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1356a4f9-86a2-7b18-a67b-93dc6dadec4f@vivier.eu> Subject: Re: [Qemu-devel] [PATCH 2/4] openrisc: fix float32 and float64 helper definitions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: qemu-devel@nongnu.org, Peter Maydell , Aurelien Jarno , Bastian Koppelmann , qemu-arm@nongnu.org On Sun, Nov 05, 2017 at 03:39:48PM +0100, Laurent Vivier wrote: > Le 04/11/2017 à 22:20, Stafford Horne a écrit : > > Hello, > > > > On Fri, Nov 03, 2017 at 09:26:22PM +0100, Laurent Vivier wrote: > >> Signed-off-by: Laurent Vivier > > > > There is no commit body here, do we need one? I can see in your cover letter > > its mentioned this was revealed after enabling "USE_SOFTFLOAT_STRUCT_TYPES". > > > > However, I'm just being curious why is this an issue? In softfloat I assume we > > pack our own floats so having the type that goes into a uint32 register wouldnt > > make much difference right? > > It's not an issue. It's for consistency. We can store a float32 in an > uint32_t, but it's better to store float32 in float32 type. OK, thank you. > And as said in include/fpu/softfloat.h: > > "Use structures for soft-float types. This prevents accidentally mixing > them with native int/float types." Thanks, I have not tested this but I trust it should not be an issue. Acked-by: Stafford Horne -Stafford