From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahxwB-0000DH-Ny for qemu-devel@nongnu.org; Mon, 21 Mar 2016 07:23:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahxw8-0004Ew-I2 for qemu-devel@nongnu.org; Mon, 21 Mar 2016 07:23:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahxw8-0004Ej-Ca for qemu-devel@nongnu.org; Mon, 21 Mar 2016 07:23:52 -0400 References: <56EEF805.8040008@freebsd.org> <56EFB99D.3040109@redhat.com> From: Paolo Bonzini Message-ID: <56EFD9C4.4090601@redhat.com> Date: Mon, 21 Mar 2016 12:23:48 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [FreeBSD] Host build i386 failing to build aarch64 targets List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Sean Bruno , QEMU Developers On 21/03/2016 10:35, Peter Maydell wrote: > > x86 can actually do 64-bit atomic loads and stores through the FPU, but > > I'm not sure about other 32-bit targets? > > As I say, ppc32 linux is one that can't -- see commit 8a5956ad6392f1155 > for last time this came up. Yes, I remember that. Loads and stores are different from RMW operations, though. > Ideally we should put a compile-time assert in the atomic ops that > the data being operated on isn't larger than sizeof(void*) so that > this is a compile time error on all 32-bit hosts rather than just > a small subset of them. Yes, I will do it if Alex doesn't beat me to it. Paolo