diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2006-05-18 22:32:21 -0400 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2006-05-18 22:32:21 -0400 |
commit | 796fa429fef8b038278c4a020374149d8b5ef8eb (patch) | |
tree | 878553b3b7fb002db8df2065cb0a38ea694aa528 /mem/bus.hh | |
parent | 381c4f6720d477bdf6d90dd2c09a54cd30b9ddd9 (diff) | |
download | gem5-796fa429fef8b038278c4a020374149d8b5ef8eb.tar.xz |
Change Packet parameters on Port methods from references to pointers.
--HG--
extra : convert_revision : 7193e70304d4cbe1e4cbe16ce0d8527b2754d066
Diffstat (limited to 'mem/bus.hh')
-rw-r--r-- | mem/bus.hh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mem/bus.hh b/mem/bus.hh index 40d274037..38573e514 100644 --- a/mem/bus.hh +++ b/mem/bus.hh @@ -57,15 +57,15 @@ class Bus : public MemObject /** Function called by the port when the bus is recieving a Timing transaction.*/ - bool recvTiming(Packet &pkt); + bool recvTiming(Packet *pkt); /** Function called by the port when the bus is recieving a Atomic transaction.*/ - Tick recvAtomic(Packet &pkt); + Tick recvAtomic(Packet *pkt); /** Function called by the port when the bus is recieving a Functional transaction.*/ - void recvFunctional(Packet &pkt); + void recvFunctional(Packet *pkt); /** Function called by the port when the bus is recieving a status change.*/ void recvStatusChange(Port::Status status, int id); @@ -108,18 +108,18 @@ class Bus : public MemObject /** When reciving a timing request from the peer port (at id), pass it to the bus. */ - virtual bool recvTiming(Packet &pkt) - { pkt.src = id; return bus->recvTiming(pkt); } + virtual bool recvTiming(Packet *pkt) + { pkt->src = id; return bus->recvTiming(pkt); } /** When reciving a Atomic requestfrom the peer port (at id), pass it to the bus. */ - virtual Tick recvAtomic(Packet &pkt) - { pkt.src = id; return bus->recvAtomic(pkt); } + virtual Tick recvAtomic(Packet *pkt) + { pkt->src = id; return bus->recvAtomic(pkt); } /** When reciving a Functional requestfrom the peer port (at id), pass it to the bus. */ - virtual void recvFunctional(Packet &pkt) - { pkt.src = id; bus->recvFunctional(pkt); } + virtual void recvFunctional(Packet *pkt) + { pkt->src = id; bus->recvFunctional(pkt); } /** When reciving a status changefrom the peer port (at id), pass it to the bus. */ |