Created
October 27, 2019 22:44
-
-
Save vddvss/db22d1b611994ad4af4bc04759d7523e to your computer and use it in GitHub Desktop.
cpf 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
diff --git a/swiftshader/0001-Yarn-Add-implementation-for-ppc64-ELFv2.patch b/swiftshader/0001-Yarn-Add-implementation-for-ppc64-ELFv2.patch | |
index 061fc2b..59e9f6d 100644 | |
--- a/swiftshader/0001-Yarn-Add-implementation-for-ppc64-ELFv2.patch | |
+++ b/swiftshader/0001-Yarn-Add-implementation-for-ppc64-ELFv2.patch | |
@@ -14,20 +14,25 @@ Subject: [PATCH] Yarn: Add implementation for ppc64 ELFv2 | |
create mode 100644 src/Yarn/OSFiber_asm_ppc64.h | |
create mode 100644 src/Yarn/OSFiber_ppc64.c | |
-diff --git a/src/Yarn/BUILD.gn b/src/Yarn/BUILD.gn | |
-index 3236f13a4..87c116871 100644 | |
---- a/src/Yarn/BUILD.gn | |
-+++ b/src/Yarn/BUILD.gn | |
-@@ -55,6 +55,9 @@ swiftshader_source_set("Yarn") { | |
- "OSFiber_x86.c", | |
+--- swiftshader/src/Yarn/BUILD.gn.orig 2019-10-23 21:38:56.065173832 -0400 | |
++++ swiftshader/src/Yarn/BUILD.gn 2019-10-23 21:46:28.152810812 -0400 | |
+@@ -48,6 +48,7 @@ swiftshader_source_set("Yarn_headers") { | |
+ "OSFiber_asm_aarch64.h", | |
+ "OSFiber_asm_arm.h", | |
+ "OSFiber_asm_x64.h", | |
++ "OSFiber_asm_ppc64.h", | |
"OSFiber_asm_x86.h", | |
+ ] | |
+ } | |
+@@ -75,6 +76,8 @@ swiftshader_source_set("Yarn") { | |
"OSFiber_asm_x86.S", | |
+ "OSFiber_x64.c", | |
+ "OSFiber_x86.c", | |
+ "OSFiber_ppc64.c", | |
-+ "OSFiber_asm_ppc64.h", | |
+ "OSFiber_asm_ppc64.S", | |
] | |
} | |
- | |
+ | |
diff --git a/src/Yarn/OSFiber_asm.hpp b/src/Yarn/OSFiber_asm.hpp | |
index e0fa508a9..7d6f96124 100644 | |
--- a/src/Yarn/OSFiber_asm.hpp | |
@@ -430,6 +435,6 @@ index 000000000..b0efeaf01 | |
+} | |
+ | |
+#endif // __powerpc64__ | |
--- | |
+-- | |
2.23.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment