From 42299443469d32a7f05bcbaa22c4dfeb9119b965 Mon Sep 17 00:00:00 2001 From: Adithya R Date: Sun, 24 Jan 2021 14:02:20 +0530 Subject: [PATCH] sm6150-common: Set arch variant to armv8-2a-dotprod karna:/ $ cat /proc/cpuinfo | grep -m 1 Features Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp From this, it's evident that our CPU (Snapdragon 732G/Kryo 470) supports all the features of ARMv8.2-DotProd [1]. Moreover AOSP sets this arch variant in their generic cortex-a55 ART target as well [2]. This should unlock some optimizations in different code paths. [1]: https://en.wikichip.org/wiki/arm/armv8#ARMv8_Extensions_and_Processor_Features [2]: https://android.googlesource.com/device/generic/art/+/refs/heads/master/armv8_cortex_a55/BoardConfig.mk#23 Signed-off-by: Adithya R Change-Id: I484bb2bcc181c62e29c04bc6e467e5edea8ac0d8 --- BoardConfigCommon.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index d9399df..61e8988 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -25,7 +25,7 @@ include vendor/xiaomi/sm6150-common/BoardConfigVendor.mk # Architecture TARGET_ARCH := arm64 -TARGET_ARCH_VARIANT := armv8-2a +TARGET_ARCH_VARIANT := armv8-2a-dotprod TARGET_CPU_ABI := arm64-v8a TARGET_CPU_VARIANT := cortex-a55