misc: Clean up and complete the gem5<->SystemC-TLM bridge [8/10]
authorChristian Menard <Christian.Menard@tu-dresden.de>
Fri, 10 Feb 2017 00:15:46 +0000 (19:15 -0500)
committerChristian Menard <Christian.Menard@tu-dresden.de>
Fri, 10 Feb 2017 00:15:46 +0000 (19:15 -0500)
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 <jason@lowepower.com>
util/tlm/sc_slave_port.cc

index b62c64724258ff9c0ad849a2c9be11ac457d60b4..8c6b051e9b8607b6dbb6054198d9dd4ea74862e5 100644 (file)
@@ -261,7 +261,7 @@ SCSlavePort::pec(
             sendRetryReq();
         }
     }
-    else if (phase == tlm::BEGIN_RESP)
+    if (phase == tlm::BEGIN_RESP)
     {
         CAUGHT_UP;