Imported patch from Fedora community to support cacheFlush on AArch64.
Switched off jit because there is no support yet
Change-Id: Ia741a05949f07df65acf5faaef6d629b1124ea0b
Signed-off-by: Vyacheslav Barinov <v.barinov@samsung.com>
# END enclude sources for V8 dtoa
#############################################
-ifeq (,$(filter-out powerpc powerpc64 s390 s390x,$(TARGET_CPU)))
+ifeq (,$(filter-out aarch64 powerpc powerpc64 s390 s390x,$(TARGET_CPU)))
VPATH += $(srcdir)/assembler \
$(srcdir)/assembler/wtf \
{
CacheRangeFlush(code, size, CACHE_SYNC_ALL);
}
+#elif WTF_CPU_AARCH64 && WTF_PLATFORM_LINUX
+ static void cacheFlush(void* code, size_t size)
+ {
+ intptr_t end = reinterpret_cast<intptr_t>(code) + size;
+ __builtin___clear_cache(reinterpret_cast<char*>(code), reinterpret_cast<char*>(end));
+ }
#else
#error "The cacheFlush support is missing on this platform."
#endif
#endif /* ARM */
+/* CPU(AArch64) - 64-bit ARM */
+#if defined(__aarch64__)
+#define WTF_CPU_AARCH64 1
+#endif
/* Operating systems - low-level dependencies */
CPU_ARCH=arm
;;
+aarch64)
+ CPU_ARCH=aarch64
+ ;;
+
mips|mipsel)
CPU_ARCH="mips"
;;
export MOZILLA_VERSION=%{version}
cd js
pushd src
-%configure --with-system-nspr --enable-threadsafe
+%ifarch aarch64
+export CPPFLAGS+=" -DENABLE_JIT=0 "
+export JIT_CONFIG_OPT="--disable-tracejit --disable-methodjit"
+%endif
+%configure --with-system-nspr --enable-threadsafe $JIT_CONFIG_OPT
+
popd
export BUILD_OPT=1
%{__make} %{?_smp_mflags} -C src \