Title: [280341] trunk
Revision
280341
Author
[email protected]
Date
2021-07-27 09:34:34 -0700 (Tue, 27 Jul 2021)

Log Message

[CMake] Add WTF_CPU_RISCV64
https://bugs.webkit.org/show_bug.cgi?id=228322

Patch by Zan Dobersek <[email protected]> on 2021-07-27
Reviewed by Adrian Perez de Castro.

Define the WTF_CPU_RISCV64 CMake macro when the specified system
processor name begins with 'riscv64'. This should also cover potential
RISC-V processor names ingrained with specific ISA extensions that are
then detectable at compile-time through specified C macros.

For WTF_CPU_RISCV64, default to disabling JIT and FTL features at the
CMake level until they are properly supported. Defaulting to system
malloc can already be avoided, but CLoop is necessary for now.

* Source/cmake/WebKitCommon.cmake:
* Source/cmake/WebKitFeatures.cmake:

Modified Paths

Diff

Modified: trunk/ChangeLog (280340 => 280341)


--- trunk/ChangeLog	2021-07-27 16:23:34 UTC (rev 280340)
+++ trunk/ChangeLog	2021-07-27 16:34:34 UTC (rev 280341)
@@ -1,3 +1,22 @@
+2021-07-27  Zan Dobersek  <[email protected]>
+
+        [CMake] Add WTF_CPU_RISCV64
+        https://bugs.webkit.org/show_bug.cgi?id=228322
+
+        Reviewed by Adrian Perez de Castro.
+
+        Define the WTF_CPU_RISCV64 CMake macro when the specified system
+        processor name begins with 'riscv64'. This should also cover potential
+        RISC-V processor names ingrained with specific ISA extensions that are
+        then detectable at compile-time through specified C macros.
+
+        For WTF_CPU_RISCV64, default to disabling JIT and FTL features at the
+        CMake level until they are properly supported. Defaulting to system
+        malloc can already be avoided, but CLoop is necessary for now.
+
+        * Source/cmake/WebKitCommon.cmake:
+        * Source/cmake/WebKitFeatures.cmake:
+
 2021-07-25  Michael Catanzaro  <[email protected]>
 
         [GTK] USE_OPENGL_OR_ES should not be an automagic feature

Modified: trunk/Source/cmake/WebKitCommon.cmake (280340 => 280341)


--- trunk/Source/cmake/WebKitCommon.cmake	2021-07-27 16:23:34 UTC (rev 280340)
+++ trunk/Source/cmake/WebKitCommon.cmake	2021-07-27 16:34:34 UTC (rev 280341)
@@ -112,6 +112,8 @@
         set(WTF_CPU_PPC64 1)
     elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le")
         set(WTF_CPU_PPC64LE 1)
+    elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^riscv64")
+        set(WTF_CPU_RISCV64 1)
     else ()
         set(WTF_CPU_UNKNOWN 1)
     endif ()

Modified: trunk/Source/cmake/WebKitFeatures.cmake (280340 => 280341)


--- trunk/Source/cmake/WebKitFeatures.cmake	2021-07-27 16:23:34 UTC (rev 280340)
+++ trunk/Source/cmake/WebKitFeatures.cmake	2021-07-27 16:34:34 UTC (rev 280341)
@@ -80,6 +80,12 @@
         set(USE_SYSTEM_MALLOC_DEFAULT OFF)
         set(ENABLE_C_LOOP_DEFAULT OFF)
         set(ENABLE_SAMPLING_PROFILER_DEFAULT OFF)
+    elseif (WTF_CPU_RISCV64)
+        set(ENABLE_JIT_DEFAULT OFF)
+        set(ENABLE_FTL_DEFAULT OFF)
+        set(USE_SYSTEM_MALLOC_DEFAULT OFF)
+        set(ENABLE_C_LOOP_DEFAULT ON)
+        set(ENABLE_SAMPLING_PROFILER_DEFAULT OFF)
     else ()
         set(ENABLE_JIT_DEFAULT OFF)
         set(ENABLE_FTL_DEFAULT OFF)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to