From: Christian Menard Date: Fri, 10 Feb 2017 00:15:46 +0000 (-0500) Subject: misc: Clean up and complete the gem5<->SystemC-TLM bridge [8/10] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c4a69bcbf851e3ece8fae5b1159540206036ee8;p=gem5.git misc: Clean up and complete the gem5<->SystemC-TLM bridge [8/10] The current TLM bridge only provides a Slave Port that allows the gem5 world to send request to the SystemC world. This patch series refractors and cleans up the existing code, and adds a Master Port that allows the SystemC world to send requests to the gem5 world. This patch: * bugfix: The BEGIN_RESP also needs to be handled when END_REQ was * skipped and '&trans == blockingRequest && phase == tlm::BEGIN_RESP' evaluates to true. Reviewed at http://reviews.gem5.org/r/3797/ Signed-off-by: Jason Lowe-Power --- diff --git a/util/tlm/sc_slave_port.cc b/util/tlm/sc_slave_port.cc index b62c64724..8c6b051e9 100644 --- a/util/tlm/sc_slave_port.cc +++ b/util/tlm/sc_slave_port.cc @@ -261,7 +261,7 @@ SCSlavePort::pec( sendRetryReq(); } } - else if (phase == tlm::BEGIN_RESP) + if (phase == tlm::BEGIN_RESP) { CAUGHT_UP;