From 3073f497124a0b4e0aa95a75ee94eec52e887ae7 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 29 Dec 2009 20:21:32 +0000 Subject: Mark read/write prefetches as such, instead of read-only prefetch --- src/utils/prefetch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/prefetch.h') 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 } -- cgit v1.2.3