Merge "Add support for cortex-a76 in soong"

am: 2bfa2c852c

Change-Id: Ieabcb61634e3e60f26589837b8c0d3c29d072371
This commit is contained in:
Haibo Huang
2018-10-15 14:15:52 -07:00
committed by android-build-merger
3 changed files with 19 additions and 0 deletions

View File

@@ -60,6 +60,11 @@ var (
// core (cortex-a55) and is sensitive to ordering.
"-mcpu=cortex-a55",
},
"cortex-a76": []string{
// Use the cortex-a55 since it is similar to the little
// core (cortex-a55) and is sensitive to ordering.
"-mcpu=cortex-a55",
},
"kryo": []string{
"-mcpu=kryo",
},
@@ -85,6 +90,7 @@ func init() {
"cortex-a72",
"cortex-a73",
"cortex-a75",
"cortex-a76",
"kryo",
"exynos-m1",
"exynos-m2",
@@ -136,6 +142,7 @@ var (
"cortex-a72": "${config.Arm64ClangCortexA53Cflags}",
"cortex-a73": "${config.Arm64ClangCortexA53Cflags}",
"cortex-a75": "${config.Arm64ClangCortexA55Cflags}",
"cortex-a76": "${config.Arm64ClangCortexA55Cflags}",
"kryo": "${config.Arm64ClangKryoCflags}",
"exynos-m1": "${config.Arm64ClangExynosM1Cflags}",
"exynos-m2": "${config.Arm64ClangExynosM2Cflags}",

View File

@@ -117,6 +117,15 @@ var (
// better solution comes around. See Bug 27340895
"-D__ARM_FEATURE_LPAE=1",
},
"cortex-a76": []string{
"-mcpu=cortex-a55",
"-mfpu=neon-fp-armv8",
// Fake an ARM compiler flag as these processors support LPAE which GCC/clang
// don't advertise.
// TODO This is a hack and we need to add it for each processor that supports LPAE until some
// better solution comes around. See Bug 27340895
"-D__ARM_FEATURE_LPAE=1",
},
"krait": []string{
"-mcpu=krait",
"-mfpu=neon-vfpv4",
@@ -162,6 +171,7 @@ func init() {
"cortex-a72",
"cortex-a73",
"cortex-a75",
"cortex-a76",
"krait",
"kryo",
"exynos-m1",