aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/prefetch.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-12-29 20:21:32 +0000
committerlloyd <[email protected]>2009-12-29 20:21:32 +0000
commit3073f497124a0b4e0aa95a75ee94eec52e887ae7 (patch)
treedd958128b1079c01f050613ea82ff7d83e90d4ab /src/utils/prefetch.h
parent1613452fd47f1dd3012db18013403a10cf517d18 (diff)
Mark read/write prefetches as such, instead of read-only prefetch
Diffstat (limited to 'src/utils/prefetch.h')
-rw-r--r--src/utils/prefetch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/prefetch.h b/src/utils/prefetch.h
index 7afdbda0a..ede196692 100644
--- a/src/utils/prefetch.h
+++ b/src/utils/prefetch.h
@@ -32,7 +32,7 @@ inline void readwrite(const T* addr, u32bit length)
const u32bit Ts_per_cache_line = CPUID::cache_line_size() / sizeof(T);
for(u32bit i = 0; i <= length; i += Ts_per_cache_line)
- __builtin_prefetch(addr + i, 0);
+ __builtin_prefetch(addr + i, 1);
#endif
}