From 80f495db9f0b7b83c239df80208e572446bf7706 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Tue, 19 Oct 2010 05:14:46 +0000 Subject: [PATCH] let the prefetch go through a register instead... --- Robust/src/Runtime/memPool.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Robust/src/Runtime/memPool.h b/Robust/src/Runtime/memPool.h index 51fbc1f2..9d2f21b3 100644 --- a/Robust/src/Runtime/memPool.h +++ b/Robust/src/Runtime/memPool.h @@ -120,8 +120,6 @@ static inline void* poolalloc( MemPool* p ) { ////////////////////////////////////////////////////////// // - // a prefetch statement from the Linux kernel, - // which the little "m" depends on architecture: // // static inline void prefetch(void *x) // { @@ -132,7 +130,7 @@ static inline void* poolalloc( MemPool* p ) { // but this built-in gcc one seems the most portable: ////////////////////////////////////////////////////////// //__builtin_prefetch( &(p->head->next) ); - asm volatile( "prefetcht0 %0" :: "m" (next)); + asm volatile( "prefetcht0 (%0)" :: "r" (next)); return headCurrent; } -- 2.34.1