target/xtensa: implement exclusive access option
commitb345e140534ea17814b02bdf8798f18db6295304
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 18 Apr 2019 23:37:00 +0000 (18 16:37 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 15 May 2019 17:31:52 +0000 (15 10:31 -0700)
treef9320a22da357d31ad10e17a340300b02a389b98
parent98736654f3dfbf984d9e26c9be0480b0560c1067
target/xtensa: implement exclusive access option

The Exclusive Instructions provide a general-purpose mechanism for
atomic updates of memory-based synchronization variables that can be
used for exclusion algorithms.

Use cmpxchg-based implementation that is sufficient for the typical use
of exclusive access in atomic operations.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
target/xtensa/cpu.c
target/xtensa/cpu.h
target/xtensa/helper.h
target/xtensa/op_helper.c
target/xtensa/overlay_tool.h
target/xtensa/translate.c
tests/tcg/xtensa/test_exclusive.S [new file with mode: 0644]