misc: Clean up and complete the gem5<->SystemC-TLM bridge [4/10]
authorChristian Menard <Christian.Menard@tu-dresden.de>
Fri, 10 Feb 2017 00:15:38 +0000 (19:15 -0500)
committerChristian Menard <Christian.Menard@tu-dresden.de>
Fri, 10 Feb 2017 00:15:38 +0000 (19:15 -0500)
commitccd9210e1a1bdce828a13a4ffdf84548ffe61592
tree0965a2bb032668a53bdb2d93ec215d808e934a6a
parentd2b19d2732e99b53a31bb967ffccbd44d6619fa3
misc: Clean up and complete the gem5<->SystemC-TLM bridge [4/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:
 * Move common code of the example to a common directory.  Move the cli
 * parsing from the SimControl module to a separate example object.  Add
 * comments describing the Gem5SimControl module.

Testing Done: Examples compile and run.

Reviewed at http://reviews.gem5.org/r/3695/

Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
util/tlm/examples/common/cli_parser.cc [new file with mode: 0644]
util/tlm/examples/common/cli_parser.hh [new file with mode: 0644]
util/tlm/examples/common/report_handler.cc [new file with mode: 0644]
util/tlm/examples/common/report_handler.hh [new file with mode: 0644]
util/tlm/examples/master_port/SConstruct
util/tlm/examples/master_port/main.cc
util/tlm/examples/slave_port/SConstruct
util/tlm/examples/slave_port/main.cc
util/tlm/sim_control.cc
util/tlm/sim_control.hh