cpu,fastmodel: Get rid of the getSendFunctional method.

Change-Id: Ib901f6a37220357fe9f1863f12ee18daed31a538
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45865
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Yu-hsin Wang <yuhsingw@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
This commit is contained in:
Gabe Black
2021-05-22 18:08:26 -07:00
parent 41e2511259
commit 62610709df
2 changed files with 0 additions and 17 deletions

View File

@@ -83,12 +83,6 @@ class BaseCPU : public ::BaseCPU
Counter totalInsts() const override;
Counter totalOps() const override { return totalInsts(); }
PortProxy::SendFunctionalFunc
getSendFunctional() override
{
return [this] (PacketPtr pkt) { evs_base_cpu->sendFunc(pkt); };
}
protected:
sc_core::sc_module *evs;
// Hold casted pointer to *evs.

View File

@@ -173,17 +173,6 @@ class BaseCPU : public ClockedObject
*/
virtual Port &getDataPort() = 0;
/**
* Returns a sendFunctional delegate for use with port proxies.
*/
virtual PortProxy::SendFunctionalFunc
getSendFunctional()
{
auto port = dynamic_cast<RequestPort *>(&getDataPort());
assert(port);
return [port](PacketPtr pkt)->void { port->sendFunctional(pkt); };
}
/**
* Purely virtual method that returns a reference to the instruction
* port. All subclasses must implement this method.