[4/4] winebuild: Use a 64k page size on ARM64

André Hentschel nerv at dawncrow.de
Tue May 5 16:50:44 CDT 2015


64k pages are much faster on arm64 kernels, while 4k is still the default to support arm32 apps.
Pure arm64 might still opt for 64k and this fixes running wine on such configurations.
The rest of Wine detects the page size at runtime and this change here shouldn't hurt.
---
 tools/winebuild/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/winebuild/utils.c b/tools/winebuild/utils.c
index b9318c3..eb62060 100644
--- a/tools/winebuild/utils.c
+++ b/tools/winebuild/utils.c
@@ -935,7 +935,7 @@ unsigned int get_page_size(void)
     case CPU_x86_64:  return 4096;
     case CPU_POWERPC: return 4096;
     case CPU_ARM:     return 4096;
-    case CPU_ARM64:   return 4096;
+    case CPU_ARM64:   return 65536;
     }
     /* unreached */
     assert(0);
-- 
1.9.1




More information about the wine-patches mailing list