From bc8735759bec907e1e2aea1edc96a235883c6bf6 Mon Sep 17 00:00:00 2001 From: Luka Macan Date: Thu, 9 Nov 2023 12:03:36 +0100 Subject: [PATCH] Add instruction cache flags --- dory/Hardware_targets/PULP/GAP9/Templates/network_c_template.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dory/Hardware_targets/PULP/GAP9/Templates/network_c_template.c b/dory/Hardware_targets/PULP/GAP9/Templates/network_c_template.c index 230ac9c2..49ebbbcf 100644 --- a/dory/Hardware_targets/PULP/GAP9/Templates/network_c_template.c +++ b/dory/Hardware_targets/PULP/GAP9/Templates/network_c_template.c @@ -127,6 +127,9 @@ struct ${prefix}network_run_token ${prefix}network_run_async(void *l2_buffer, si // First open the cluster pi_cluster_conf_init(&conf); conf.id=0; +#ifdef TARGET_CHIP_FAMILY_GAP9 + conf.icache_conf = PI_CLUSTER_MASTER_CORE_ICACHE_ENABLE | PI_CLUSTER_ICACHE_PREFETCH_ENABLE | PI_CLUSTER_ICACHE_ENABLE; +#endif <% n_args = 4 if l3_supported else 5 %>\