From 4e9d91016a9f23b2ec6a73c01713e4a363d2593a Mon Sep 17 00:00:00 2001 From: Stephan Diestelhorst Date: Thu, 17 Oct 2013 10:20:45 -0500 Subject: [PATCH] mem: De-virtualise interfaces in the CoherentBus The CoherentBus eventually got virtual methods for its interface. The "virtuality" of the CoherentBus, however, comes already from the virtual interface of the bus' ports. There is no need to add another layer of virtual functions, here. --- src/mem/coherent_bus.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mem/coherent_bus.hh b/src/mem/coherent_bus.hh index 034b855ec..8dde66d37 100644 --- a/src/mem/coherent_bus.hh +++ b/src/mem/coherent_bus.hh @@ -272,19 +272,19 @@ class CoherentBus : public BaseBus /** Function called by the port when the bus is recieving a Timing request packet.*/ - virtual bool recvTimingReq(PacketPtr pkt, PortID slave_port_id); + bool recvTimingReq(PacketPtr pkt, PortID slave_port_id); /** Function called by the port when the bus is recieving a Timing response packet.*/ - virtual bool recvTimingResp(PacketPtr pkt, PortID master_port_id); + bool recvTimingResp(PacketPtr pkt, PortID master_port_id); /** Function called by the port when the bus is recieving a timing snoop request.*/ - virtual void recvTimingSnoopReq(PacketPtr pkt, PortID master_port_id); + void recvTimingSnoopReq(PacketPtr pkt, PortID master_port_id); /** Function called by the port when the bus is recieving a timing snoop response.*/ - virtual bool recvTimingSnoopResp(PacketPtr pkt, PortID slave_port_id); + bool recvTimingSnoopResp(PacketPtr pkt, PortID slave_port_id); /** Timing function called by port when it is once again able to process * requests. */ -- 2.30.2