mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-09 01:41:38 +01:00
17 lines
847 B
Diff
17 lines
847 B
Diff
[arm64] Use the ISB instruction instead of YIELD
|
|
https://source.chromium.org/chromium/_/chromium/v8/v8/+/2b4f16e81707a744c09417f49ad6c7cb77413da8
|
|
--- a/deps/v8/src/base/platform/yield-processor.h
|
|
+++ b/deps/v8/src/base/platform/yield-processor.h
|
|
@@ -41,8 +41,10 @@
|
|
#if defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_X64)
|
|
#define YIELD_PROCESSOR __asm__ __volatile__("pause")
|
|
#elif defined(V8_HOST_ARCH_ARM64) || \
|
|
- (defined(V8_HOST_ARCH_ARM) && __ARM_ARCH >= 6)
|
|
+ (defined(V8_HOST_ARCH_ARM) && __ARM_ARCH > 6)
|
|
#define YIELD_PROCESSOR __asm__ __volatile__("isb" ::: "memory")
|
|
+#elif defined(V8_HOST_ARCH_ARM)
|
|
+#define YIELD_PROCESSOR __asm__ __volatile__("yield")
|
|
#elif defined(V8_HOST_ARCH_MIPS64EL) && __mips_isa_rev >= 2
|
|
// Don't bother doing using .word here since r2 is the lowest supported mips64
|
|
// that Chromium supports.
|