From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai2bs-0003rj-MN for qemu-devel@nongnu.org; Mon, 21 Mar 2016 12:23:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ai2bo-0008OE-Ma for qemu-devel@nongnu.org; Mon, 21 Mar 2016 12:23:16 -0400 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:32772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai2bo-0008OA-Bk for qemu-devel@nongnu.org; Mon, 21 Mar 2016 12:23:12 -0400 Received: by mail-wm0-x22e.google.com with SMTP id l68so158328570wml.0 for ; Mon, 21 Mar 2016 09:23:12 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Mon, 21 Mar 2016 16:23:04 +0000 Message-Id: <1458577386-9984-1-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH v1 0/2] Fix for FreeBSD compile on i386 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, sbruno@freebsd.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , peter.maydell@linaro.org The compiler of FreeBSD/i386 complains when trying to make a 64 bit atomic load on a 32 bit host. This fixes the compile failure and adds some compile time guards to the atomic functions. If wanted I can expand the compile time guards to include the __sync_and_fetch* intrinsics version as well. Alex Bennée (2): cpus: don't use atomic_read for vm_clock_warp_start include/qemu/atomic: add compile time asserts cpus.c | 12 ++++------- include/qemu/atomic.h | 58 ++++++++++++++++++++++++++++++--------------------- 2 files changed, 38 insertions(+), 32 deletions(-) -- 2.7.3