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
|
#endif
|
||||||
|
|
||||||
BOOST_SP_OBSOLETE()
|
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -64,7 +62,11 @@ inline long atomic_decrement( register long * pw )
|
|||||||
|
|
||||||
asm
|
asm
|
||||||
{
|
{
|
||||||
|
#if defined(__PPCZen__) || defined(__PPCe500__) || defined(__PPCe500v2__)
|
||||||
|
msync
|
||||||
|
#else
|
||||||
sync
|
sync
|
||||||
|
#endif
|
||||||
|
|
||||||
loop:
|
loop:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user