qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v1 0/2] Fix for FreeBSD compile on i386
@ 2016-03-21 16:23 Alex Bennée
  2016-03-21 16:23 ` [Qemu-devel] [PATCH v1 1/2] cpus: don't use atomic_read for vm_clock_warp_start Alex Bennée
  2016-03-21 16:23 ` [Qemu-devel] [PATCH v1 2/2] include/qemu/atomic: add compile time asserts Alex Bennée
  0 siblings, 2 replies; 7+ messages in thread
From: Alex Bennée @ 2016-03-21 16:23 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, sbruno, Alex Bennée, peter.maydell

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-04-04  8:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-21 16:23 [Qemu-devel] [PATCH v1 0/2] Fix for FreeBSD compile on i386 Alex Bennée
2016-03-21 16:23 ` [Qemu-devel] [PATCH v1 1/2] cpus: don't use atomic_read for vm_clock_warp_start Alex Bennée
2016-03-21 16:26   ` Paolo Bonzini
2016-03-21 17:45     ` Alex Bennée
2016-03-21 16:23 ` [Qemu-devel] [PATCH v1 2/2] include/qemu/atomic: add compile time asserts Alex Bennée
2016-04-01 15:03   ` Alex Bennée
2016-04-04  8:33     ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).