qemu/include
Paolo Bonzini 06831001ac atomics: eliminate mb_read/mb_set
qatomic_mb_read and qatomic_mb_set were the very first atomic primitives
introduced for QEMU; their semantics are unclear and they provide a false
sense of safety.

The last use of qatomic_mb_read() has been removed, so delete it.
qatomic_mb_set() instead can survive as an optimized
qatomic_set()+smp_mb(), similar to Linux's smp_store_mb(), but
rename it to qatomic_set_mb() to match the order of the two
operations.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2023-06-06 09:42:14 +02:00
..
authz
block
chardev
crypto
disas
exec
fpu
gdbstub
hw
io
libdecnumber
migration
monitor
net
qapi
qemu atomics: eliminate mb_read/mb_set 2023-06-06 09:42:14 +02:00
qom
scsi
semihosting
standard-headers
sysemu
tcg
ui
user
elf.h
glib-compat.h
qemu-io.h
qemu-main.h