aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Muellner <christophm30@gmail.com>2018-04-28 20:47:45 +0200
committerQi Wang <interwq@gmail.com>2018-04-30 15:04:00 -0700
commit6df90600a7e4df51b06efe2d47df211cba5935a7 (patch)
tree3fbd54c1b3f3d75754baf9cb3ab85bebf2ff5cbd
parent39b1b2049934be5be7e5b1b6f77ff31cd02398c5 (diff)
downloadplatform_external_jemalloc_new-6df90600a7e4df51b06efe2d47df211cba5935a7.tar.gz
platform_external_jemalloc_new-6df90600a7e4df51b06efe2d47df211cba5935a7.tar.bz2
platform_external_jemalloc_new-6df90600a7e4df51b06efe2d47df211cba5935a7.zip
aarch64: Add ILP32 support.
Instead of setting a fix value of 48 allowed VA bits, we distiguish between LP64 and ILP32. Testsuite result with LP64: Test suite summary: pass: 13/13, skip: 0/13, fail: 0/13 Testsuit result with ILP32: Test suite summary: pass: 13/13, skip: 0/13, fail: 0/13 Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index ba0b694b..8d21d0ae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -412,7 +412,13 @@ AC_DEFINE_UNQUOTED([CPU_SPINWAIT], [$CPU_SPINWAIT])
case "${host_cpu}" in
aarch64)
AC_MSG_CHECKING([number of significant virtual address bits])
- LG_VADDR=48
+ if test "x${ac_cv_sizeof_void_p}" = "x4" ; then
+ #aarch64 ILP32
+ LG_VADDR=32
+ else
+ #aarch64 LP64
+ LG_VADDR=48
+ fi
AC_MSG_RESULT([$LG_VADDR])
;;
x86_64)