changeset 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 d2f70da2aa19
children ee938477af88
files TaskManager/Fifo/ReferencedDmaManager.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;
 }
+