Loading cc/config/arm64_device.go +3 −6 Original line number Diff line number Diff line Loading @@ -50,15 +50,12 @@ var ( "-mcpu=cortex-a53", }, "cortex-a55": []string{ // The cortex-a55 target is not yet supported, // so use cortex-a53. "-mcpu=cortex-a53", "-mcpu=cortex-a55", }, "cortex-a75": []string{ // Use the cortex-a53 since it is similar to the little // Use the cortex-a55 since it is similar to the little // core (cortex-a55) and is sensitive to ordering. // The cortex-a55 target is not yet supported. "-mcpu=cortex-a53", "-mcpu=cortex-a55", }, "kryo": []string{ // Use the cortex-a57 cpu since some compilers Loading cc/config/arm_device.go +2 −2 Original line number Diff line number Diff line Loading @@ -98,7 +98,7 @@ var ( "-D__ARM_FEATURE_LPAE=1", }, "cortex-a55": []string{ "-mcpu=cortex-a53", "-mcpu=cortex-a55", "-mfpu=neon-fp-armv8", // Fake an ARM compiler flag as these processors support LPAE which GCC/clang // don't advertise. Loading @@ -107,7 +107,7 @@ var ( "-D__ARM_FEATURE_LPAE=1", }, "cortex-a75": []string{ "-mcpu=cortex-a53", "-mcpu=cortex-a55", "-mfpu=neon-fp-armv8", // Fake an ARM compiler flag as these processors support LPAE which GCC/clang // don't advertise. Loading cc/sabi.go +7 −2 Original line number Diff line number Diff line Loading @@ -74,8 +74,13 @@ func (sabimod *sabi) flags(ctx ModuleContext, flags Flags) Flags { // RSClang does not support recent mcpu option likes exynos-m2. // So we need overriding mcpu option when we want to use it. if ctx.Arch().CpuVariant == "exynos-m2" { flags.ToolingCFlags = append(flags.ToolingCFlags, "-mcpu=cortex-a53") mappedArch := map[string]string{ "exynos-m2": "cortex-a53", "cortex-a55": "cortex-a53", "cortex-a75": "cortex-a57", } if arch, ok := mappedArch[ctx.Arch().CpuVariant]; ok { flags.ToolingCFlags = append(flags.ToolingCFlags, "-mcpu="+arch) } return flags Loading Loading
cc/config/arm64_device.go +3 −6 Original line number Diff line number Diff line Loading @@ -50,15 +50,12 @@ var ( "-mcpu=cortex-a53", }, "cortex-a55": []string{ // The cortex-a55 target is not yet supported, // so use cortex-a53. "-mcpu=cortex-a53", "-mcpu=cortex-a55", }, "cortex-a75": []string{ // Use the cortex-a53 since it is similar to the little // Use the cortex-a55 since it is similar to the little // core (cortex-a55) and is sensitive to ordering. // The cortex-a55 target is not yet supported. "-mcpu=cortex-a53", "-mcpu=cortex-a55", }, "kryo": []string{ // Use the cortex-a57 cpu since some compilers Loading
cc/config/arm_device.go +2 −2 Original line number Diff line number Diff line Loading @@ -98,7 +98,7 @@ var ( "-D__ARM_FEATURE_LPAE=1", }, "cortex-a55": []string{ "-mcpu=cortex-a53", "-mcpu=cortex-a55", "-mfpu=neon-fp-armv8", // Fake an ARM compiler flag as these processors support LPAE which GCC/clang // don't advertise. Loading @@ -107,7 +107,7 @@ var ( "-D__ARM_FEATURE_LPAE=1", }, "cortex-a75": []string{ "-mcpu=cortex-a53", "-mcpu=cortex-a55", "-mfpu=neon-fp-armv8", // Fake an ARM compiler flag as these processors support LPAE which GCC/clang // don't advertise. Loading
cc/sabi.go +7 −2 Original line number Diff line number Diff line Loading @@ -74,8 +74,13 @@ func (sabimod *sabi) flags(ctx ModuleContext, flags Flags) Flags { // RSClang does not support recent mcpu option likes exynos-m2. // So we need overriding mcpu option when we want to use it. if ctx.Arch().CpuVariant == "exynos-m2" { flags.ToolingCFlags = append(flags.ToolingCFlags, "-mcpu=cortex-a53") mappedArch := map[string]string{ "exynos-m2": "cortex-a53", "cortex-a55": "cortex-a53", "cortex-a75": "cortex-a57", } if arch, ok := mappedArch[ctx.Arch().CpuVariant]; ok { flags.ToolingCFlags = append(flags.ToolingCFlags, "-mcpu="+arch) } return flags Loading