aboutsummaryrefslogtreecommitdiff
path: root/hw/audio/intel-hda.c
diff options
context:
space:
mode:
authorEmilio G. Cota <cota@braap.org>2016-05-24 16:06:13 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2016-05-29 09:11:11 +0200
commitc983895258a771f8a5e4a53950bfb7fd2216651c (patch)
treeb383a83403d84c2d8247143783f3f700772dcaf8 /hw/audio/intel-hda.c
parent56ebe02203f033a8399f7f6ea6972225ed87101c (diff)
atomics: emit an smp_read_barrier_depends() barrier only for Alpha and Thread Sanitizer
For correctness, smp_read_barrier_depends() is only required to emit a barrier on Alpha hosts. However, we are currently emitting a consume fence unconditionally, and most compilers currently treat consume and acquire fences as equivalent. Fix it by keeping the consume fence if we're compiling with Thread Sanitizer, since this might help prevent false warnings. Otherwise, only emit the barrier for Alpha hosts. Note that we still guarantee that smp_read_barrier_depends() is a compiler barrier. Signed-off-by: Emilio G. Cota <cota@braap.org> Message-Id: <1464120374-8950-3-git-send-email-cota@braap.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/audio/intel-hda.c')
0 files changed, 0 insertions, 0 deletions