summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Muellner <christoph.muellner@theobroma-systems.com>2018-08-07 15:46:32 +0200
committerChristoph Muellner <christoph.muellner@theobroma-systems.com>2019-08-30 20:10:53 +0200
commitcd5727c3b035433131fd4777008b12505d01ed5a (patch)
treea5317245926279b6f8c80d679aa9b2c97bc31388
parente5afe569c0339ff5cd299f0a9abb5e4b52e35400 (diff)
[AArch64] Add Xgene1 prefetch tunings.
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
-rw-r--r--gcc/config/aarch64/aarch64.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index 5a3c38bf44ec..d6584ca26562 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -635,6 +635,15 @@ static const cpu_prefetch_tune thunderx2t99_prefetch_tune =
-1 /* default_opt_level */
};
+static const cpu_prefetch_tune xgene1_prefetch_tune =
+{
+ 8, /* num_slots */
+ 32, /* l1_cache_size */
+ 64, /* l1_cache_line_size */
+ 256, /* l2_cache_size */
+ -1 /* default_opt_level */
+};
+
static const struct tune_params generic_tunings =
{
&cortexa57_extra_costs,
@@ -890,7 +899,7 @@ static const struct tune_params xgene1_tunings =
0, /* max_case_values. */
tune_params::AUTOPREFETCHER_OFF, /* autoprefetcher_model. */
(AARCH64_EXTRA_TUNE_NONE), /* tune_flags. */
- &generic_prefetch_tune
+ &xgene1_prefetch_tune
};
static const struct tune_params emag_tunings =