From 07de7988c4c36a8eb262d53c259dc17d20d3b770 Mon Sep 17 00:00:00 2001
From: Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
Date: Fri, 25 Aug 2017 10:02:45 +1000
Subject: [PATCH 2/5] Add hw prefetchers to cpu_prefetch_tune
---
gcc/config/aarch64/aarch64-protos.h | 1 +
gcc/config/aarch64/aarch64.c | 18 ++++++++++++------
2 files changed, 13 insertions(+), 6 deletions(-)
@@ -211,6 +211,7 @@ struct cpu_prefetch_tune
const int l1_cache_line_size;
const int l2_cache_size;
const int default_opt_level;
+ const int hw_prefetchers_avail;
};
struct tune_params
@@ -533,7 +533,8 @@ static const cpu_prefetch_tune generic_prefetch_tune =
-1, /* l1_cache_size */
-1, /* l1_cache_line_size */
-1, /* l2_cache_size */
- -1 /* default_opt_level */
+ -1, /* default_opt_level */
+ -1 /* default hw_prefetchers_avail */
};
static const cpu_prefetch_tune exynosm1_prefetch_tune =
@@ -542,7 +543,8 @@ static const cpu_prefetch_tune exynosm1_prefetch_tune =
-1, /* l1_cache_size */
64, /* l1_cache_line_size */
-1, /* l2_cache_size */
- -1 /* default_opt_level */
+ -1, /* default_opt_level */
+ -1 /* default hw_prefetchers_avail */
};
static const cpu_prefetch_tune qdf24xx_prefetch_tune =
@@ -551,7 +553,8 @@ static const cpu_prefetch_tune qdf24xx_prefetch_tune =
32, /* l1_cache_size */
64, /* l1_cache_line_size */
1024, /* l2_cache_size */
- 3 /* default_opt_level */
+ 3, /* default_opt_level */
+ 7 /* hw_prefetchers_avail */
};
static const cpu_prefetch_tune thunderxt88_prefetch_tune =
@@ -560,7 +563,8 @@ static const cpu_prefetch_tune thunderxt88_prefetch_tune =
32, /* l1_cache_size */
128, /* l1_cache_line_size */
16*1024, /* l2_cache_size */
- 3 /* default_opt_level */
+ 3, /* default_opt_level */
+ -1 /* default hw_prefetchers_avail */
};
static const cpu_prefetch_tune thunderx_prefetch_tune =
@@ -569,7 +573,8 @@ static const cpu_prefetch_tune thunderx_prefetch_tune =
32, /* l1_cache_size */
128, /* l1_cache_line_size */
-1, /* l2_cache_size */
- -1 /* default_opt_level */
+ -1, /* default_opt_level */
+ -1 /* default hw_prefetchers_avail */
};
static const cpu_prefetch_tune thunderx2t99_prefetch_tune =
@@ -578,7 +583,8 @@ static const cpu_prefetch_tune thunderx2t99_prefetch_tune =
32, /* l1_cache_size */
64, /* l1_cache_line_size */
256, /* l2_cache_size */
- -1 /* default_opt_level */
+ -1, /* default_opt_level */
+ -1 /* default hw_prefetchers_avail */
};
static const struct tune_params generic_tunings =
--
2.7.4