From fcccab0dcdc57fe838bb64d584ebbcf28c059dee Mon Sep 17 00:00:00 2001 From: Uri Wiener Date: Fri, 29 Jun 2012 11:19:08 -0400 Subject: [PATCH] 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. --- src/mem/coherent_bus.hh | 8 ++++---- src/mem/noncoherent_bus.hh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mem/coherent_bus.hh b/src/mem/coherent_bus.hh index 760ff8add..a8737eeed 100644 --- a/src/mem/coherent_bus.hh +++ b/src/mem/coherent_bus.hh @@ -217,19 +217,19 @@ class CoherentBus : public BaseBus /** 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 --git a/src/mem/noncoherent_bus.hh b/src/mem/noncoherent_bus.hh index 8bd6c0e74..7227d3bc6 100644 --- a/src/mem/noncoherent_bus.hh +++ b/src/mem/noncoherent_bus.hh @@ -178,11 +178,11 @@ class NoncoherentBus : public BaseBus /** 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.*/ -- 2.30.2