Use the supported compiler intrinsic __sync(); instead of msync asm

This commit is contained in:
Jordan Williams
2022-06-21 21:09:01 -05:00
parent afd23d7199
commit 9b92ea28f0

View File

@ -60,14 +60,10 @@ inline long atomic_decrement( register long * pw )
{ {
register int a; register int a;
__sync();
asm asm
{ {
#if defined(__PPCZen__) || defined(__PPCe500__) || defined(__PPCe500v2__)
msync
#else
sync
#endif
loop: loop:
lwarx a, 0, pw lwarx a, 0, pw