From: Earl Ou Date: Tue, 4 Feb 2020 03:30:59 +0000 (+0800) Subject: systemc: gem5_to_tlm: treat non-rw as ignorable command X-Git-Tag: v19.0.0.0~26 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a4d111855318a054da9525948879e8081e76cc1;p=gem5.git systemc: gem5_to_tlm: treat non-rw as ignorable command Treat all kinds of non read/write requests in gem5_to_tlm bridge as ignorable commands. Change-Id: I5236e1b31f9a57470dc666d01cbe96249f48ed5d Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25163 Reviewed-by: Gabe Black Maintainer: Gabe Black Tested-by: kokoro --- diff --git a/src/systemc/tlm_bridge/gem5_to_tlm.cc b/src/systemc/tlm_bridge/gem5_to_tlm.cc index f6ea811bd..8c11c9721 100644 --- a/src/systemc/tlm_bridge/gem5_to_tlm.cc +++ b/src/systemc/tlm_bridge/gem5_to_tlm.cc @@ -105,13 +105,10 @@ packet2payload(PacketPtr packet) trans->set_command(tlm::TLM_IGNORE_COMMAND); } else if (packet->isRead()) { trans->set_command(tlm::TLM_READ_COMMAND); - } else if (packet->isInvalidate()) { - /* Do nothing */ - trans->set_command(tlm::TLM_IGNORE_COMMAND); } else if (packet->isWrite()) { trans->set_command(tlm::TLM_WRITE_COMMAND); } else { - SC_REPORT_FATAL("Gem5ToTlmBridge", "No R/W packet"); + trans->set_command(tlm::TLM_IGNORE_COMMAND); } // Attach the packet pointer to the TLM transaction to keep track. @@ -284,10 +281,6 @@ Gem5ToTlmBridge::recvTimingReq(PacketPtr packet) panic_if(packet->cacheResponding(), "Should not see packets where cache is responding"); - panic_if(!(packet->isRead() || packet->isWrite()), - "Should only see read and writes at TLM memory\n"); - - // We should never get a second request after noting that a retry is // required. sc_assert(!needToSendRequestRetry);