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