systemc: fix gem5_to_tlm bridge
authorEarl Ou <shunhsingou@google.com>
Wed, 18 Dec 2019 07:06:01 +0000 (15:06 +0800)
committerEarl Ou <shunhsingou@google.com>
Tue, 7 Jan 2020 08:57:18 +0000 (08:57 +0000)
commit3001388ae1e0c97df7223b00367ee9cec572c4c7
tree6194d65e1257a0c1069c3178a47e975d04b00547
parent0233515ebf42bc235f1807dacfc919a11d97cbf2
systemc: fix gem5_to_tlm bridge

The original implementation doesn't set trans and phase correctly when
scheduling PayloadEvent, and causes unexpected behavior after the event started.

This change fixes the wrong event triggering by directly applying
tlm_utils::peq instead of creating another one.

Change-Id: I207567b57f4b49c3c4ebe117d624e5cc9915c12a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23823
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/systemc/tlm_bridge/gem5_to_tlm.cc
src/systemc/tlm_bridge/gem5_to_tlm.hh
src/systemc/tlm_bridge/sc_peq.hh [deleted file]