diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-01-31 14:20:39 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-01-31 14:20:39 -0500 |
commit | 4875b3346709d72e0be99fb6ccede65550b91f94 (patch) | |
tree | bd71ec62c7a5a74e40ca226a2ac5b4f26c71f81d /mem/bus.hh | |
parent | a1033448ead67ea2819d67609c0390aefc865b0f (diff) | |
download | gem5-4875b3346709d72e0be99fb6ccede65550b91f94.tar.xz |
changed sendresult -> bool,tick,void as appropriate
first crack at io devices code
made CpuRequest that derives from Request
dev/io_device.cc:
dev/io_device.hh:
first crack at the classes for Pio and Dma devices
dev/platform.hh:
We are going to a system pointer to get info about the memory system
mem/bus.hh:
changed sendresult -> bool,tick,void as appropriate
mem/port.hh:
changed sendresult -> bool,tick,void as appropriate;
removed the sendTiming(pkt,t) call since it is not really
implementable in a generic fashion
mem/request.hh:
pulled items from Request into CpuRequest
--HG--
extra : convert_revision : 6213cf2b66417fa023b80884d9e623e78f5aa891
Diffstat (limited to 'mem/bus.hh')
-rw-r--r-- | mem/bus.hh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mem/bus.hh b/mem/bus.hh index 80d4d9dfd..8dea42e28 100644 --- a/mem/bus.hh +++ b/mem/bus.hh @@ -45,15 +45,15 @@ class Bus : public MemObject { /** Function called by the port when the bus is recieving a Timing transaction.*/ - SendResult recvTiming(Packet &pkt, int id); + bool recvTiming(Packet &pkt, int id); /** Function called by the port when the bus is recieving a Atomic transaction.*/ - SendResult recvAtomic(Packet &pkt, int id); + Tick recvAtomic(Packet &pkt, int id); /** Function called by the port when the bus is recieving a Functional transaction.*/ - SendResult recvFunctional(Packet &pkt, int id); + void recvFunctional(Packet &pkt, int id); /** Function called by the port when the bus is recieving a status change.*/ void recvStatusChange(Port::Status status, int id); @@ -79,17 +79,17 @@ class Bus : public MemObject /** When reciving a timing request from the peer port (at id), pass it to the bus. */ - virtual SendResult recvTiming(Packet &pkt) + virtual bool recvTiming(Packet &pkt) { return bus->recvTiming(pkt, id); } /** When reciving a Atomic requestfrom the peer port (at id), pass it to the bus. */ - virtual SendResult recvAtomic(Packet &pkt) + virtual Tick recvAtomic(Packet &pkt) { return bus->recvAtomic(pkt, id); } /** When reciving a Functional requestfrom the peer port (at id), pass it to the bus. */ - virtual SendResult recvFunctional(Packet &pkt) + virtual void recvFunctional(Packet &pkt) { return bus->recvFunctional(pkt, id); } /** When reciving a status changefrom the peer port (at id), |