$OpenBSD: patch-Source_WTF_wtf_Platform_h,v 1.3 2021/10/25 09:22:21 jca Exp $

https://bugs.webkit.org/show_bug.cgi?id=129963

Index: Source/WTF/wtf/Platform.h
--- Source/WTF/wtf/Platform.h.orig
+++ Source/WTF/wtf/Platform.h
@@ -137,6 +137,12 @@
 #define WTF_CPU_BIG_ENDIAN 1
 #endif
 
+/* CPU(RISCV64) - RISC-V */
+#if defined(__riscv) && __riscv_xlen == 64
+#define WTF_CPU_KNOWN 1
+#define WTF_CPU_RISCV64 1
+#endif
+
 /* CPU(SH4) - SuperH SH-4 */
 #if defined(__SH4__)
 #define WTF_CPU_SH4 1
@@ -155,6 +161,13 @@
 #define WTF_CPU_BIG_ENDIAN 1
 #endif
 
+/* CPU(SPARC64) - SPARC V9 */
+#if defined(__sparc64__)
+#define WTF_CPU_KNOWN 1
+#define WTF_CPU_SPARC64 1
+#define WTF_CPU_BIG_ENDIAN 1
+#endif
+
 /* CPU(X86) - i386 / x86 32-bit */
 #if   defined(__i386__) \
     || defined(i386)     \
@@ -707,6 +720,9 @@
     || CPU(S390X) \
     || CPU(MIPS64) \
     || CPU(PPC64) \
+    || CPU(PPC64) \
+    || CPU(RISCV64) \
+    || CPU(SPARC64) \
     || CPU(PPC64LE)
 #define USE_JSVALUE64 1
 #else
