]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: update Ampere-1 core definition
authorPhilipp Tomsich <philipp.tomsich@vrull.eu>
Sun, 7 Aug 2022 22:30:52 +0000 (00:30 +0200)
committerPhilipp Tomsich <philipp.tomsich@vrull.eu>
Thu, 6 Oct 2022 10:39:05 +0000 (12:39 +0200)
This brings the extensions detected by -mcpu=native on Ampere-1 systems
in sync with the defaults generated for -mcpu=ampere1.

Note that some early kernel versions on Ampere1 may misreport the
presence of PAUTH and PREDRES (i.e., -mcpu=native will add 'nopauth'
and 'nopredres').

gcc/ChangeLog:

* config/aarch64/aarch64-cores.def (AARCH64_CORE): Update
Ampere-1 core entry.

Signed-off-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
gcc/config/aarch64/aarch64-cores.def

index b50628d6b5139f39e08b7f9913e0cd1816c5027b..e9a4b622be018d92a790db10f4d5cf926bba512c 100644 (file)
@@ -69,7 +69,7 @@ AARCH64_CORE("thunderxt81",   thunderxt81,   thunderx,  V8A,  (CRC, CRYPTO), thu
 AARCH64_CORE("thunderxt83",   thunderxt83,   thunderx,  V8A,  (CRC, CRYPTO), thunderx,  0x43, 0x0a3, -1)
 
 /* Ampere Computing ('\xC0') cores. */
-AARCH64_CORE("ampere1", ampere1, cortexa57, V8_6A, (), ampere1, 0xC0, 0xac3, -1)
+AARCH64_CORE("ampere1", ampere1, cortexa57, V8_6A, (F16, RNG, AES, SHA3), ampere1, 0xC0, 0xac3, -1)
 /* Do not swap around "emag" and "xgene1",
    this order is required to handle variant correctly. */
 AARCH64_CORE("emag",        emag,      xgene1,    V8A,  (CRC, CRYPTO), emag, 0x50, 0x000, 3)