-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch Boost.SmartPtr 1.79.0 to support a specific variant of PowerPC
This patch adds support for CodeWarrior / PowerPC platforms which support the `msync` instead of the `sync` assembly instruction. This change has been fixed upstream in Boost.SmartPtr by boostorg/smart_ptr#95. THe change should be included in an upcoming upstream release.
- Loading branch information
1 parent
7e662af
commit b0b23e0
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
recipes/boost/all/patches/1.79.0-smart_ptr_cw_ppc_msync.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff --git a/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp b/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp | ||
index 81387ce..58a69e6 100644 | ||
--- a/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp | ||
+++ b/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: | ||
|