From 59b5b17e813c238187d568450b7155e7398fdf18 Mon Sep 17 00:00:00 2001 From: Jordan Williams Date: Wed, 22 Jun 2022 10:41:00 -0500 Subject: [PATCH] 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 9b92ea28f02d709230e5d63a6d96edc7ace251b1. --- include/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp b/include/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp index 81387ce..58a69e6 100644 --- a/include/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp +++ b/include/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp @@ -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: