forked from boostorg/smart_ptr
Add support for different sync instructions for CodeWarrior PPC (#95)
* Use msync or se_isync as appropriate for CodeWarrior PPC
* Un-obsolete sp_counted_base_cw_ppc
* Remove untested VLE_ON branch
* Use the supported compiler intrinsic __sync(); instead of msync asm
* Revert "Use the supported compiler intrinsic __sync(); instead of msync asm"
This reverts commit 9b92ea28f0
.
This commit is contained in:
@ -35,8 +35,6 @@ BOOST_PRAGMA_MESSAGE("Using CodeWarrior/PowerPC sp_counted_base")
|
||||
|
||||
#endif
|
||||
|
||||
BOOST_SP_OBSOLETE()
|
||||
|
||||
namespace boost
|
||||
{
|
||||
|
||||
@ -64,7 +62,11 @@ inline long atomic_decrement( register long * pw )
|
||||
|
||||
asm
|
||||
{
|
||||
#if defined(__PPCZen__) || defined(__PPCe500__) || defined(__PPCe500v2__)
|
||||
msync
|
||||
#else
|
||||
sync
|
||||
#endif
|
||||
|
||||
loop:
|
||||
|
||||
|
Reference in New Issue
Block a user