changeset fe8355ca560e in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=fe8355ca560e
description:
Bus: enable non/coherent buses sub-classes
This patch merely changes several methods to be virtual in order to
enable
non/coherent buses sub-classes.
diffstat:
src/mem/coherent_bus.hh | 8 ++++----
src/mem/noncoherent_bus.hh | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (44 lines):
diff -r 7f95b7f56577 -r fe8355ca560e src/mem/coherent_bus.hh
--- a/src/mem/coherent_bus.hh Fri Jun 29 11:19:07 2012 -0400
+++ b/src/mem/coherent_bus.hh Fri Jun 29 11:19:08 2012 -0400
@@ -217,19 +217,19 @@
/** Function called by the port when the bus is recieving a Timing
request packet.*/
- bool recvTimingReq(PacketPtr pkt, PortID slave_port_id);
+ virtual bool recvTimingReq(PacketPtr pkt, PortID slave_port_id);
/** Function called by the port when the bus is recieving a Timing
response packet.*/
- bool recvTimingResp(PacketPtr pkt, PortID master_port_id);
+ virtual bool recvTimingResp(PacketPtr pkt, PortID master_port_id);
/** Function called by the port when the bus is recieving a timing
snoop request.*/
- void recvTimingSnoopReq(PacketPtr pkt, PortID master_port_id);
+ virtual void recvTimingSnoopReq(PacketPtr pkt, PortID master_port_id);
/** Function called by the port when the bus is recieving a timing
snoop response.*/
- bool recvTimingSnoopResp(PacketPtr pkt, PortID slave_port_id);
+ virtual bool recvTimingSnoopResp(PacketPtr pkt, PortID slave_port_id);
/**
* Forward a timing packet to our snoopers, potentially excluding
diff -r 7f95b7f56577 -r fe8355ca560e src/mem/noncoherent_bus.hh
--- a/src/mem/noncoherent_bus.hh Fri Jun 29 11:19:07 2012 -0400
+++ b/src/mem/noncoherent_bus.hh Fri Jun 29 11:19:08 2012 -0400
@@ -178,11 +178,11 @@
/** Function called by the port when the bus is recieving a Timing
request packet.*/
- bool recvTimingReq(PacketPtr pkt, PortID slave_port_id);
+ virtual bool recvTimingReq(PacketPtr pkt, PortID slave_port_id);
/** Function called by the port when the bus is recieving a Timing
response packet.*/
- bool recvTimingResp(PacketPtr pkt, PortID master_port_id);
+ virtual bool recvTimingResp(PacketPtr pkt, PortID master_port_id);
/** Function called by the port when the bus is recieving a Atomic
transaction.*/
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev