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:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user