mirror of
https://github.com/openwrt/video.git
synced 2026-06-17 12:40:19 +04:00
98444e090b
* Use JavaScript JIT only on supported platforms. * Fix ARM Thumb2 detection to allow using JavaScript JIT on ARMv7. * Add inline assembly implementation returning the current stack pointer on PPC64 (or PPC). Signed-off-by: Daniel Golle <daniel@makrotopia.org>
25 lines
830 B
Diff
25 lines
830 B
Diff
From 25627ca5cd611bac7f53372c25ab6100f07d7b00 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Golle <daniel@makrotopia.org>
|
|
Date: Mon, 9 Dec 2024 01:50:49 +0000
|
|
Subject: [PATCH] PlatformCPU.h: fix detection of PPC CPU
|
|
|
|
Detection of PPC CPU currently relies on the CPU(BIG_ENDIAN) which
|
|
is only defined further down in the same header file.
|
|
Directly use byte-order macro just like the PPC64 to fix detection of
|
|
32-bit PPC platforms.
|
|
---
|
|
Source/WTF/wtf/PlatformCPU.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/Source/WTF/wtf/PlatformCPU.h
|
|
+++ b/Source/WTF/wtf/PlatformCPU.h
|
|
@@ -90,7 +90,7 @@
|
|
|| defined(_M_PPC) \
|
|
|| defined(__PPC)) \
|
|
&& !CPU(PPC64) \
|
|
- && CPU(BIG_ENDIAN)
|
|
+ && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
|
|
#define WTF_CPU_PPC 1
|
|
#define WTF_CPU_KNOWN 1
|
|
#endif
|