Title: [280682] trunk/Tools
Revision
280682
Author
[email protected]
Date
2021-08-05 05:25:44 -0700 (Thu, 05 Aug 2021)

Log Message

run-jsc-stress-tests: detect the riscv64 architecture
https://bugs.webkit.org/show_bug.cgi?id=228817

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

* Scripts/run-jsc-stress-tests: Detect the riscv64 architecture when
examining ELF binaries. For the moment, this architecture should be
marked as not supporting FTL.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (280681 => 280682)


--- trunk/Tools/ChangeLog	2021-08-05 07:40:52 UTC (rev 280681)
+++ trunk/Tools/ChangeLog	2021-08-05 12:25:44 UTC (rev 280682)
@@ -1,3 +1,14 @@
+2021-08-05  Zan Dobersek  <[email protected]>
+
+        run-jsc-stress-tests: detect the riscv64 architecture
+        https://bugs.webkit.org/show_bug.cgi?id=228817
+
+        Reviewed by Adrian Perez de Castro.
+
+        * Scripts/run-jsc-stress-tests: Detect the riscv64 architecture when
+        examining ELF binaries. For the moment, this architecture should be
+        marked as not supporting FTL.
+
 2021-08-04  Peng Liu  <[email protected]>
 
         [Catalina][GPUP] Some API tests fail after GPU Process features are enabled

Modified: trunk/Tools/Scripts/run-jsc-stress-tests (280681 => 280682)


--- trunk/Tools/Scripts/run-jsc-stress-tests	2021-08-05 07:40:52 UTC (rev 280681)
+++ trunk/Tools/Scripts/run-jsc-stress-tests	2021-08-05 12:25:44 UTC (rev 280682)
@@ -422,6 +422,8 @@
 
     # MIPS and PowerPC may be either big- or little-endian. S390 (which includes
     # S390x) is big-endian. The rest are little-endian.
+    # For RISC-V, to avoid encoding problems, construct the comparison string
+    # by packing a char array matching the ELF's RISC-V machine value.
     code = data[18, 20]
     case code
     when "\x03\0"
@@ -446,6 +448,8 @@
         "x86-64"
     when "\xB7\0"
         "arm64"
+    when [243, 0].pack("cc")
+        "riscv64"
     else
         $stderr.puts "Warning: unable to determine architecture from code: #{code}"
         nil
@@ -513,7 +517,7 @@
 
 $hostOS = determineOS unless $hostOS
 $architecture = determineArchitecture unless $architecture
-$isFTLPlatform = !($architecture == "x86" || $architecture == "arm" || $architecture == "mips" || $hostOS == "windows" || $hostOS == "playstation")
+$isFTLPlatform = !($architecture == "x86" || $architecture == "arm" || $architecture == "mips" || $architecture == "riscv64" || $hostOS == "windows" || $hostOS == "playstation")
 
 if $architecture == "x86"
     # The JIT is temporarily disabled on this platform since
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to