IntDevice::recvResponse is called from two places in current mainline: (1) the
short circuit path of X86ISA::IntDevice::IntMasterPort::sendMessage for atomic
mode, and (2) the full request->response path to and from the x86 interrupts
device (finally called from MessageMasterPort::recvTimingResp). In the former
case, the packet was deleted correctly, but in the latter case, the packet and
request leak. To fix the leak, move request and packet deletion into IntDevice
inherited class implementations of recvResponse.
return ranges;
}
+Tick
+X86ISA::I82094AA::recvResponse(PacketPtr pkt)
+{
+ // Packet instantiated calling sendMessage() in signalInterrupt()
+ delete pkt->req;
+ delete pkt;
+ return 0;
+}
+
Tick
X86ISA::I82094AA::read(PacketPtr pkt)
{
BaseMasterPort &getMasterPort(const std::string &if_name,
PortID idx = InvalidPortID);
+ Tick recvResponse(PacketPtr pkt) M5_ATTR_OVERRIDE;
+
void signalInterrupt(int line);
void raiseInterruptPin(int number);
void lowerInterruptPin(int number);
assert(pkt->isResponse());
// also ignore the latency in handling the response
recvResponse(pkt);
- delete pkt->req;
- delete pkt;
}
}
}
virtual Tick
recvResponse(PacketPtr pkt)
{
+ panic("recvResponse not implemented.\n");
return 0;
}