diff options
| author | Ruiqiang Hao <Ruiqiang.Hao@windriver.com> | 2024-11-01 15:15:33 +0800 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-11-11 06:19:18 -0800 |
| commit | 959405cc371df8d51bbd41e7ee970a943c738297 (patch) | |
| tree | 4ccdab16e73a3b46dd4a72b67bfe79bd05d71333 | |
| parent | 2252b53ac6ddae74bf2430ced32da6da740e2a2d (diff) | |
| download | poky-959405cc371df8d51bbd41e7ee970a943c738297.tar.gz | |
gcc: restore a patch for Neoverse N2 core
Commit 7806e21e7d47 ("gcc: upgrade to v11.5") removed one patch named
0001-aarch64-Update-Neoverse-N2-core-defini.patch by mistake, this will
cause the Neoverse N2 core to be identified as the armv8.5 architecture,
restore this patch to avoid related compilation issues.
(From OE-Core rev: 4c75edda8ec28fb8dee19ca90a1ea7f33ba80999)
Signed-off-by: Ruiqiang Hao <Ruiqiang.Hao@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/recipes-devtools/gcc/gcc-11.5.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-devtools/gcc/gcc/0001-aarch64-Update-Neoverse-N2-core-definition.patch | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-11.5.inc b/meta/recipes-devtools/gcc/gcc-11.5.inc index 5d29b8e61e..f17ec9da5c 100644 --- a/meta/recipes-devtools/gcc/gcc-11.5.inc +++ b/meta/recipes-devtools/gcc/gcc-11.5.inc | |||
| @@ -65,6 +65,7 @@ SRC_URI = "\ | |||
| 65 | file://0003-CVE-2021-42574.patch \ | 65 | file://0003-CVE-2021-42574.patch \ |
| 66 | file://0004-CVE-2021-42574.patch \ | 66 | file://0004-CVE-2021-42574.patch \ |
| 67 | file://0001-CVE-2021-46195.patch \ | 67 | file://0001-CVE-2021-46195.patch \ |
| 68 | file://0001-aarch64-Update-Neoverse-N2-core-definition.patch \ | ||
| 68 | file://0002-aarch64-add-armv9-a-to-march.patch \ | 69 | file://0002-aarch64-add-armv9-a-to-march.patch \ |
| 69 | file://0003-aarch64-Enable-FP16-feature-by-default-for-Armv9.patch \ | 70 | file://0003-aarch64-Enable-FP16-feature-by-default-for-Armv9.patch \ |
| 70 | file://0004-arm-add-armv9-a-architecture-to-march.patch \ | 71 | file://0004-arm-add-armv9-a-architecture-to-march.patch \ |
diff --git a/meta/recipes-devtools/gcc/gcc/0001-aarch64-Update-Neoverse-N2-core-definition.patch b/meta/recipes-devtools/gcc/gcc/0001-aarch64-Update-Neoverse-N2-core-definition.patch new file mode 100644 index 0000000000..4159042ebb --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc/0001-aarch64-Update-Neoverse-N2-core-definition.patch | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | From 30ade014c7b7d22a2a26697b5a2079a278ea560d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Andre Vieira <andre.simoesdiasvieira@arm.com> | ||
| 3 | Date: Thu, 8 Sep 2022 06:02:18 +0000 | ||
| 4 | Subject: [PATCH] aarch64: Update Neoverse N2 core definition | ||
| 5 | |||
| 6 | commit 9f37d31324f89d0b7b2abac988a976d121ae29c6 from upstream. | ||
| 7 | |||
| 8 | gcc/ChangeLog: | ||
| 9 | |||
| 10 | * config/aarch64/aarch64-cores.def: Update Neoverse N2 core entry. | ||
| 11 | |||
| 12 | Upstream-Status: Backport | ||
| 13 | Signed-off-by: Ruiqiang Hao <Ruiqiang.Hao@windriver.com> | ||
| 14 | --- | ||
| 15 | gcc/config/aarch64/aarch64-cores.def | 5 ++++- | ||
| 16 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/gcc/config/aarch64/aarch64-cores.def b/gcc/config/aarch64/aarch64-cores.def | ||
| 19 | index 0243e3d4d..722f3e64e 100644 | ||
| 20 | --- a/gcc/config/aarch64/aarch64-cores.def | ||
| 21 | +++ b/gcc/config/aarch64/aarch64-cores.def | ||
| 22 | @@ -147,7 +147,6 @@ AARCH64_CORE("neoverse-512tvb", neoverse512tvb, cortexa57, 8_4A, AARCH64_FL_FOR | ||
| 23 | AARCH64_CORE("saphira", saphira, saphira, 8_4A, AARCH64_FL_FOR_ARCH8_4 | AARCH64_FL_CRYPTO, saphira, 0x51, 0xC01, -1) | ||
| 24 | |||
| 25 | /* Armv8.5-A Architecture Processors. */ | ||
| 26 | -AARCH64_CORE("neoverse-n2", neoversen2, cortexa57, 8_5A, AARCH64_FL_FOR_ARCH8_5 | AARCH64_FL_I8MM | AARCH64_FL_BF16 | AARCH64_FL_F16 | AARCH64_FL_SVE | AARCH64_FL_SVE2 | AARCH64_FL_SVE2_BITPERM | AARCH64_FL_RNG | AARCH64_FL_MEMTAG, neoversen2, 0x41, 0xd49, -1) | ||
| 27 | AARCH64_CORE("cobalt-100", cobalt100, cortexa57, 8_5A, AARCH64_FL_FOR_ARCH8_5 | AARCH64_FL_I8MM | AARCH64_FL_BF16 | AARCH64_FL_F16 | AARCH64_FL_SVE | AARCH64_FL_SVE2 | AARCH64_FL_SVE2_BITPERM | AARCH64_FL_RNG | AARCH64_FL_MEMTAG, neoversen2, 0x6d, 0xd49, -1) | ||
| 28 | AARCH64_CORE("neoverse-v2", neoversev2, cortexa57, 8_5A, AARCH64_FL_FOR_ARCH8_5 | AARCH64_FL_I8MM | AARCH64_FL_BF16 | AARCH64_FL_F16 | AARCH64_FL_SVE | AARCH64_FL_SVE2 | AARCH64_FL_SVE2_BITPERM | AARCH64_FL_RNG | AARCH64_FL_MEMTAG, neoverse512tvb, 0x41, 0xd4f, -1) | ||
| 29 | AARCH64_CORE("grace", grace, cortexa57, 8_5A, AARCH64_FL_FOR_ARCH8_5 | AARCH64_FL_I8MM | AARCH64_FL_BF16 | AARCH64_FL_F16 | AARCH64_FL_CRYPTO | AARCH64_FL_SHA3 | AARCH64_FL_SM4 | AARCH64_FL_SVE | AARCH64_FL_SVE2 | AARCH64_FL_SVE2_BITPERM | AARCH64_FL_SVE2_AES | AARCH64_FL_SVE2_SM4 | AARCH64_FL_SVE2_SHA3, neoverse512tvb, 0x41, 0xd4f, -1) | ||
| 30 | @@ -167,4 +166,7 @@ AARCH64_CORE("cortex-a76.cortex-a55", cortexa76cortexa55, cortexa53, 8_2A, AAR | ||
| 31 | /* Armv8-R Architecture Processors. */ | ||
| 32 | AARCH64_CORE("cortex-r82", cortexr82, cortexa53, 8R, AARCH64_FL_FOR_ARCH8_R, cortexa53, 0x41, 0xd15, -1) | ||
| 33 | |||
| 34 | +/* Armv9-A Architecture Processors. */ | ||
| 35 | +AARCH64_CORE("neoverse-n2", neoversen2, cortexa57, 9A, AARCH64_FL_FOR_ARCH9 | AARCH64_FL_I8MM | AARCH64_FL_BF16 | AARCH64_FL_F16 | AARCH64_FL_SVE | AARCH64_FL_SVE2 | AARCH64_FL_SVE2_BITPERM | AARCH64_FL_RNG | AARCH64_FL_MEMTAG | AARCH64_FL_PROFILE, neoversen2, 0x41, 0xd49, -1) | ||
| 36 | + | ||
| 37 | #undef AARCH64_CORE | ||
| 38 | -- | ||
| 39 | 2.46.2 | ||
| 40 | |||
