summaryrefslogtreecommitdiff
path: root/cpu/simple/timing.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2006-05-18 22:32:21 -0400
committerSteve Reinhardt <stever@eecs.umich.edu>2006-05-18 22:32:21 -0400
commit796fa429fef8b038278c4a020374149d8b5ef8eb (patch)
tree878553b3b7fb002db8df2065cb0a38ea694aa528 /cpu/simple/timing.cc
parent381c4f6720d477bdf6d90dd2c09a54cd30b9ddd9 (diff)
downloadgem5-796fa429fef8b038278c4a020374149d8b5ef8eb.tar.xz
Change Packet parameters on Port methods from references to pointers.
--HG-- extra : convert_revision : 7193e70304d4cbe1e4cbe16ce0d8527b2754d066
Diffstat (limited to 'cpu/simple/timing.cc')
-rw-r--r--cpu/simple/timing.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpu/simple/timing.cc b/cpu/simple/timing.cc
index a511c3dbb..80d3380a5 100644
--- a/cpu/simple/timing.cc
+++ b/cpu/simple/timing.cc
@@ -60,14 +60,14 @@ TimingSimpleCPU::init()
}
Tick
-TimingSimpleCPU::CpuPort::recvAtomic(Packet &pkt)
+TimingSimpleCPU::CpuPort::recvAtomic(Packet *pkt)
{
panic("TimingSimpleCPU doesn't expect recvAtomic callback!");
return curTick;
}
void
-TimingSimpleCPU::CpuPort::recvFunctional(Packet &pkt)
+TimingSimpleCPU::CpuPort::recvFunctional(Packet *pkt)
{
panic("TimingSimpleCPU doesn't expect recvFunctional callback!");
}
@@ -192,7 +192,7 @@ TimingSimpleCPU::read(Addr addr, T &data, unsigned flags)
data_read_pkt->size = sizeof(T);
data_read_pkt->dest = Packet::Broadcast;
- if (!dcachePort.sendTiming(*data_read_pkt)) {
+ if (!dcachePort.sendTiming(data_read_pkt)) {
_status = DcacheRetry;
dcache_pkt = data_read_pkt;
} else {
@@ -274,7 +274,7 @@ TimingSimpleCPU::write(T data, Addr addr, unsigned flags, uint64_t *res)
data_write_pkt->addr = data_write_req->getPaddr();
data_write_pkt->dest = Packet::Broadcast;
- if (!dcachePort.sendTiming(*data_write_pkt)) {
+ if (!dcachePort.sendTiming(data_write_pkt)) {
_status = DcacheRetry;
dcache_pkt = data_write_pkt;
} else {
@@ -354,7 +354,7 @@ TimingSimpleCPU::fetch()
Fault fault = setupFetchPacket(ifetch_pkt);
if (fault == NoFault) {
- if (!icachePort.sendTiming(*ifetch_pkt)) {
+ if (!icachePort.sendTiming(ifetch_pkt)) {
// Need to wait for retry
_status = IcacheRetry;
} else {
@@ -406,7 +406,7 @@ TimingSimpleCPU::completeIfetch()
bool
-TimingSimpleCPU::IcachePort::recvTiming(Packet &pkt)
+TimingSimpleCPU::IcachePort::recvTiming(Packet *pkt)
{
cpu->completeIfetch();
return true;
@@ -442,9 +442,9 @@ TimingSimpleCPU::completeDataAccess(Packet *pkt)
bool
-TimingSimpleCPU::DcachePort::recvTiming(Packet &pkt)
+TimingSimpleCPU::DcachePort::recvTiming(Packet *pkt)
{
- cpu->completeDataAccess(&pkt);
+ cpu->completeDataAccess(pkt);
return true;
}