eal/ppc: fix prefetch instruction
authorChao Zhu <chaozhu@linux.vnet.ibm.com>
Wed, 30 Mar 2016 15:39:17 +0000 (23:39 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 1 Apr 2016 10:44:58 +0000 (12:44 +0200)
commit1861116ee67143762e9ce37b3525f97bbbe16da2
tree949006126428e12a7613c413a932b12234d952c9
parenta88ba49e51037aab2d73bd68ad1da2de50e5c8f6
eal/ppc: fix prefetch instruction

Current prefetch instruction (dcbt) implementation for IBM POWER8 has wrong
Touch Hint(TH) parameter. The current setting of TH=1 indicates to load data from
current cache line and an unlimited number of sequentially following cache lines.
TTH=0 means to load data from current cache line. rte_prefetch0 function is defined
to load one cache line, which means TH=0 is suited here.

Signed-off-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>
lib/librte_eal/common/include/arch/ppc_64/rte_prefetch.h