diff options
| author | Alex Bennée <alex.bennee@linaro.org> | 2016-04-04 15:35:49 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-04-05 11:46:52 +0200 |
| commit | ca47a926ad780d5cc91a205d25a859128cdf800e (patch) | |
| tree | abb3098a6ce88400688e8447174f53969a871d1b /hw/core/qdev-properties-system.c | |
| parent | ccffff48c93c30733783b05cd1ef843a4c274653 (diff) | |
| download | focaccia-qemu-ca47a926ad780d5cc91a205d25a859128cdf800e.tar.gz focaccia-qemu-ca47a926ad780d5cc91a205d25a859128cdf800e.zip | |
include/qemu/atomic: add compile time asserts
To be safely portable no atomic access should be trying to do more than the natural word width of the host. The most common abuse is trying to atomically access 64 bit values on a 32 bit host. This patch adds some QEMU_BUILD_BUG_ON to the __atomic instrinsic paths to create a build failure if (sizeof(*ptr) > sizeof(void *)). Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <1459780549-12942-3-git-send-email-alex.bennee@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/core/qdev-properties-system.c')
0 files changed, 0 insertions, 0 deletions