From f617bd173f76b71013f35d42a5a75545894023aa Mon Sep 17 00:00:00 2001 From: Jordan Williams Date: Tue, 21 Jun 2022 17:41:58 -0500 Subject: [PATCH] Use msync or se_isync as appropriate for CodeWarrior PPC --- include/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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..7dfcfa2 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 @@ -64,7 +64,15 @@ inline long atomic_decrement( register long * pw ) asm { +#if defined(__PPCZen__) || defined(__PPCe500__) || defined(__PPCe500v2__) +# if VLE_ON + se_isync +# else + msync +# endif +#else sync +#endif loop: