Mercurial > hg > Game > Cerium
diff TaskManager/Fifo/ReferencedDmaManager.cc @ 1257:981b36f38333 draft
add prefetcht0
author | Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Nov 2011 18:01:14 +0900 |
parents | a27c361c436b |
children | 52667b4c31e0 |
line wrap: on
line diff
--- a/TaskManager/Fifo/ReferencedDmaManager.cc Sat Nov 12 15:32:41 2011 +0900 +++ b/TaskManager/Fifo/ReferencedDmaManager.cc Tue Nov 15 18:01:14 2011 +0900 @@ -5,5 +5,7 @@ void * ReferencedDmaManager::dma_load(Scheduler *s, void *buf, memaddr addr, uint32 size, uint32 mask) { + asm volatile("prefetcht0 %0"::"m"(addr):"memory"); return (void*)addr; } +