diff options
Diffstat (limited to 'cpu/simple/cpu.cc')
-rw-r--r-- | cpu/simple/cpu.cc | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/cpu/simple/cpu.cc b/cpu/simple/cpu.cc index b7c213edf..469fad270 100644 --- a/cpu/simple/cpu.cc +++ b/cpu/simple/cpu.cc @@ -36,7 +36,6 @@ #include <string> #include "base/cprintf.hh" -#include "base/chunk_generator.hh" #include "base/inifile.hh" #include "base/loader/symtab.hh" #include "base/misc.hh" @@ -128,50 +127,6 @@ SimpleCPU::CpuPort::recvRetry() return cpu->processRetry(); } -void -SimpleCPU::CpuPort::writeBlobFunctional(Addr addr, uint8_t *p, int size) -{ - int prevSize = 0; - //Base Packet - for (ChunkGenerator gen(addr, size, sendBlockSizeQuery()); !gen.done(); gen.next()) - { - Packet *blobpkt = new Packet(); - CpuRequest *blobreq = new CpuRequest(); - blobpkt->addr = gen.addr(); - blobpkt->size = gen.size(); - blobpkt->cmd = Write; - blobpkt->req = blobreq; - blobpkt->req->paddr = blobpkt->addr; - blobpkt->req->size = blobpkt->size; - blobpkt->data = p + prevSize; - prevSize += blobpkt->size; - - sendFunctional(*blobpkt); - } -} - -void -SimpleCPU::CpuPort::readBlobFunctional(Addr addr, uint8_t *p, int size) -{ - int prevSize = 0; - //Base Packet - for (ChunkGenerator gen(addr, size, sendBlockSizeQuery()); !gen.done(); gen.next()) - { - Packet *blobpkt = new Packet(); - CpuRequest *blobreq = new CpuRequest(); - blobpkt->addr = gen.addr(); - blobpkt->size = gen.size(); - blobpkt->cmd = Write; - blobpkt->req = blobreq; - blobpkt->req->paddr = blobpkt->addr; - blobpkt->req->size = blobpkt->size; - blobpkt->data = p + prevSize; - prevSize += blobpkt->size; - - sendFunctional(*blobpkt); - } -} - SimpleCPU::SimpleCPU(Params *p) : BaseCPU(p), icachePort(this), dcachePort(this), tickEvent(this, p->width), xc(NULL) |