systemc: Send response to TLM side if a packet does not need response
authorYu-hsin Wang <yuhsingw@google.com>
Mon, 17 Aug 2020 02:54:17 +0000 (10:54 +0800)
committerYu-hsin Wang <yuhsingw@google.com>
Thu, 27 Aug 2020 00:15:26 +0000 (00:15 +0000)
commita7530f798be0eb4a16a1768cb13efbd83e50781f
tree99009df5e553bdea91196e5243592c5468be16d6
parentd892d39f33e94b8369e62ae973f050ca1a94ad28
systemc: Send response to TLM side if a packet does not need response

A completed TLM transaction includes request and response parts.
Currently, if a gem5 packet does not need a reponse, the bridge would not
send BEGIN_RESP to its upstream. It causes stuck on TLM side.

To fix this problem, the bridge should send BEGIN_RESP by itself in this
case.

Change-Id: I318dec21bc3f291693715c0d70bc624addf05076
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32735
Reviewed-by: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/tlm_bridge/tlm_to_gem5.cc