Lines Matching defs:packet

82  * Convert a gem5 packet to a TLM payload by copying all the relevant
86 packet2payload(PacketPtr packet)
91 trans->set_address(packet->getAddr());
96 unsigned int size = packet->getSize();
97 unsigned char *data = packet->getPtr<unsigned char>();
103 if ((packet->req->getFlags() & Request::NO_ACCESS) != 0) {
106 } else if (packet->isRead()) {
108 } else if (packet->isInvalidate()) {
111 } else if (packet->isWrite()) {
114 SC_REPORT_FATAL("Gem5ToTlmBridge", "No R/W packet");
117 // Attach the packet pointer to the TLM transaction to keep track.
118 auto *extension = new Gem5SystemC::Gem5Extension(packet);
145 auto packet = extension.getPacket();
152 * If the packet was piped through and needs a response, we don't need
153 * to touch the packet and can forward it directly as a response.
155 * packet.
158 if (packet->isResponse()) {
159 need_retry = !bsp.sendTimingResp(packet);
161 } else if (packet->needsResponse()) {
162 packet->makeResponse();
163 need_retry = !bsp.sendTimingResp(packet);
216 Gem5ToTlmBridge<BITWIDTH>::recvAtomic(PacketPtr packet)
218 panic_if(packet->cacheResponding(),
222 auto *trans = packet2payload(packet);
231 if (packet->needsResponse())
232 packet->makeResponse();
242 PacketPtr packet, MemBackdoorPtr &backdoor)
244 panic_if(packet->cacheResponding(),
250 auto *trans = packet2payload(packet);
264 if (packet->needsResponse())
265 packet->makeResponse();
274 Gem5ToTlmBridge<BITWIDTH>::recvFunctionalSnoop(PacketPtr packet)
284 Gem5ToTlmBridge<BITWIDTH>::recvTimingReq(PacketPtr packet)
286 panic_if(packet->cacheResponding(),
289 panic_if(!(packet->isRead() || packet->isWrite()),
316 auto *trans = packet2payload(packet);
321 * The header delay marks the point in time, when the packet first is seen
339 auto delay = sc_core::sc_time::from_value(packet->payloadDelay);
341 packet->payloadDelay = 0;
342 packet->headerDelay = 0;
374 Gem5ToTlmBridge<BITWIDTH>::recvTimingSnoopResp(PacketPtr packet)
384 Gem5ToTlmBridge<BITWIDTH>::tryTiming(PacketPtr packet)
398 PacketPtr packet =
401 bool need_retry = !bsp.sendTimingResp(packet);
415 Gem5ToTlmBridge<BITWIDTH>::recvFunctional(PacketPtr packet)
418 auto *trans = packet2payload(packet);