diff options
author | Kevin Lim <ktlim@umich.edu> | 2006-07-12 15:25:34 -0400 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2006-07-12 15:25:34 -0400 |
commit | bbfe1db6b3d96e5bbf8fe91a494cf60eceae68ad (patch) | |
tree | 499a7693074aa4c78c239cdbe52f202c6f6e0814 /src/cpu | |
parent | 6d120b7912e554aaa44e28d1133f4bbfd9d04f66 (diff) | |
parent | bf4fdbe25a275eeb036cd5e9e05d126c52f90aba (diff) | |
download | gem5-bbfe1db6b3d96e5bbf8fe91a494cf60eceae68ad.tar.xz |
Merge ktlim@zizzer:/bk/newmem
into zamp.eecs.umich.edu:/z/ktlim2/clean/newmem
src/cpu/o3/fetch_impl.hh:
Hand merge.
--HG--
extra : convert_revision : 820dab2bc921cbadecaca51cd069327f984f5c74
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/o3/fetch_impl.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cpu/o3/fetch_impl.hh b/src/cpu/o3/fetch_impl.hh index a430f4472..4045492ca 100644 --- a/src/cpu/o3/fetch_impl.hh +++ b/src/cpu/o3/fetch_impl.hh @@ -357,6 +357,8 @@ DefaultFetch<Impl>::processCacheCompletion(PacketPtr pkt) return; } + memcpy(cacheData[tid], pkt->getPtr<uint8_t *>(), cacheBlkSize); + if (!drainPending) { // Wake up the CPU (if it went to sleep and was waiting on // this completion event). @@ -553,7 +555,7 @@ DefaultFetch<Impl>::fetchCacheLine(Addr fetch_PC, Fault &ret_fault, unsigned tid // Build packet here. PacketPtr data_pkt = new Packet(mem_req, Packet::ReadReq, Packet::Broadcast); - data_pkt->dataStatic(cacheData[tid]); + data_pkt->dataDynamic(new uint8_t[cacheBlkSize]); cacheDataPC[tid] = fetch_PC; |