diff options
author | Lingfeng Yang | 2020-06-12 21:02:23 +0200 |
---|---|---|
committer | Alex Bennée | 2020-06-16 15:49:05 +0200 |
commit | 0aebab04b9289bd37017593b413ce7a762b54c55 (patch) | |
tree | 98905d512be034c19c907c07c351868bc7d9fe3d /hw/core/cpu.c | |
parent | Makefile: remove old compatibility gunks (diff) | |
download | qemu-0aebab04b9289bd37017593b413ce7a762b54c55.tar.gz qemu-0aebab04b9289bd37017593b413ce7a762b54c55.tar.xz qemu-0aebab04b9289bd37017593b413ce7a762b54c55.zip |
configure: add --enable-tsan flag + fiber annotations for coroutine-ucontext
We tried running QEMU under tsan in 2016, but tsan's lack of support for
longjmp-based fibers was a blocker:
https://groups.google.com/forum/#!topic/thread-sanitizer/se0YuzfWazw
Fortunately, thread sanitizer gained fiber support in early 2019:
https://reviews.llvm.org/D54889
This patch brings tsan support upstream by importing the patch that annotated
QEMU's coroutines as tsan fibers in Android's QEMU fork:
https://android-review.googlesource.com/c/platform/external/qemu/+/844675
Tested with '--enable-tsan --cc=clang-9 --cxx=clang++-9 --disable-werror'
configure flags.
Signed-off-by: Lingfeng Yang <lfy@google.com>
Signed-off-by: Emilio G. Cota <cota@braap.org>
[cota: minor modifications + configure changes]
Signed-off-by: Robert Foley <robert.foley@linaro.org>
[RF: configure changes, coroutine fix + minor modifications]
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200609200738.445-2-robert.foley@linaro.org>
Message-Id: <20200612190237.30436-5-alex.bennee@linaro.org>
Diffstat (limited to 'hw/core/cpu.c')
0 files changed, 0 insertions, 0 deletions