From 867a9b84d9d633bed17a8880f84864840b923dfd Mon Sep 17 00:00:00 2001 From: Erik Hallnor Date: Sun, 17 Oct 2004 00:07:21 -0400 Subject: Bunch of little changes for tracking copies and getting OPT right. cpu/simple_cpu/simple_cpu.cc: Send Copy cpu/trace/opt_cpu.cc: Calculate the block size correctly. Set lookupTable value directly, since the old way only worked for FA caches. cpu/trace/trace_cpu.cc: Don't start events if the hierarchy is in non-event mode. --HG-- extra : convert_revision : daf2db5ed7428c2fb08652cf76f6fe99d8357db5 --- cpu/simple_cpu/simple_cpu.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cpu/simple_cpu/simple_cpu.cc') diff --git a/cpu/simple_cpu/simple_cpu.cc b/cpu/simple_cpu/simple_cpu.cc index 0b45d2b9d..d25f80c6d 100644 --- a/cpu/simple_cpu/simple_cpu.cc +++ b/cpu/simple_cpu/simple_cpu.cc @@ -400,6 +400,15 @@ SimpleCPU::copy(Addr dest) xc->mem->read(memReq, data); memReq->paddr = dest_addr; xc->mem->write(memReq, data); + if (dcacheInterface) { + memReq->cmd = Copy; + memReq->completionEvent = NULL; + memReq->paddr = xc->copySrcPhysAddr; + memReq->dest = dest_addr; + memReq->size = 64; + memReq->time = curTick; + dcacheInterface->access(memReq); + } } return fault; } -- cgit v1.2.3