Fixup cache flush definitions for XLP
mco_icache_sync_range was earlier set to mipsNN_icache_sync_range_index_32 which is not necessary, revert this. Also, the data cache is coherent so write back is not really needed. This change is experimental.
This commit is contained in:
parent
751092ac03
commit
9059cbf57d
@ -101,13 +101,8 @@ mips_config_cache(struct mips_cpuinfo * cpuinfo)
|
||||
break;
|
||||
case 32:
|
||||
mips_cache_ops.mco_icache_sync_all = mipsNN_icache_sync_all_32;
|
||||
#ifdef CPU_NLM
|
||||
mips_cache_ops.mco_icache_sync_range =
|
||||
mipsNN_icache_sync_range_index_32;
|
||||
#else
|
||||
mips_cache_ops.mco_icache_sync_range =
|
||||
mipsNN_icache_sync_range_32;
|
||||
#endif
|
||||
mips_cache_ops.mco_icache_sync_range_index =
|
||||
mipsNN_icache_sync_range_index_32;
|
||||
break;
|
||||
@ -155,18 +150,23 @@ mips_config_cache(struct mips_cpuinfo * cpuinfo)
|
||||
mips_cache_ops.mco_pdcache_wbinv_all =
|
||||
mips_cache_ops.mco_intern_pdcache_wbinv_all =
|
||||
mipsNN_pdcache_wbinv_all_32;
|
||||
#ifdef CPU_NLM
|
||||
mips_cache_ops.mco_pdcache_wbinv_range =
|
||||
mipsNN_pdcache_wbinv_range_index_32;
|
||||
#if defined(CPU_RMI) || defined(CPU_NLM)
|
||||
mips_cache_ops.mco_pdcache_wbinv_range = cache_noop;
|
||||
#else
|
||||
mips_cache_ops.mco_pdcache_wbinv_range =
|
||||
mipsNN_pdcache_wbinv_range_32;
|
||||
#endif
|
||||
#if defined(CPU_RMI) || defined(CPU_NLM)
|
||||
mips_cache_ops.mco_pdcache_wbinv_range_index =
|
||||
mips_cache_ops.mco_intern_pdcache_wbinv_range_index = cache_noop;
|
||||
mips_cache_ops.mco_pdcache_inv_range = cache_noop;
|
||||
#else
|
||||
mips_cache_ops.mco_pdcache_wbinv_range_index =
|
||||
mips_cache_ops.mco_intern_pdcache_wbinv_range_index =
|
||||
mipsNN_pdcache_wbinv_range_index_32;
|
||||
mips_cache_ops.mco_pdcache_inv_range =
|
||||
mipsNN_pdcache_inv_range_32;
|
||||
#endif
|
||||
#if defined(CPU_RMI) || defined(CPU_NLM)
|
||||
mips_cache_ops.mco_pdcache_wb_range =
|
||||
mips_cache_ops.mco_intern_pdcache_wb_range = cache_noop;
|
||||
|
Loading…
Reference in New Issue
Block a user