diff options
author | Christian Menard <Christian.Menard@tu-dresden.de> | 2017-02-09 19:15:38 -0500 |
---|---|---|
committer | Christian Menard <Christian.Menard@tu-dresden.de> | 2017-02-09 19:15:38 -0500 |
commit | ccd9210e1a1bdce828a13a4ffdf84548ffe61592 (patch) | |
tree | 0965a2bb032668a53bdb2d93ec215d808e934a6a /util/tlm/examples/master_port/SConstruct | |
parent | d2b19d2732e99b53a31bb967ffccbd44d6619fa3 (diff) | |
download | gem5-ccd9210e1a1bdce828a13a4ffdf84548ffe61592.tar.xz |
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>
Diffstat (limited to 'util/tlm/examples/master_port/SConstruct')
-rw-r--r-- | util/tlm/examples/master_port/SConstruct | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/util/tlm/examples/master_port/SConstruct b/util/tlm/examples/master_port/SConstruct index 8ca9959a0..a896a34e4 100644 --- a/util/tlm/examples/master_port/SConstruct +++ b/util/tlm/examples/master_port/SConstruct @@ -54,7 +54,8 @@ env.ParseConfig('pkg-config --cflags --libs systemc') # add include dirs env.Append(CPPPATH=[gem5_root + '/build/' + gem5_arch, gem5_root + '/util/systemc', - gem5_root + '/util/tlm']) + gem5_root + '/util/tlm', + '../common']) env.Append(LIBS=['gem5_' + gem5_variant]) env.Append(LIBPATH=[gem5_root + '/build/' + gem5_arch]) @@ -72,6 +73,6 @@ src_systemc = [gem5_root + '/util/systemc/sc_gem5_control.cc', gem5_root + '/util/systemc/stats.cc'] src_tlm = Glob(gem5_root + '/util/tlm/*.cc') -src_main = Glob('*.cc') +src_main = Glob('*.cc') + Glob('../common/*.cc') main = env.Program(target, src_systemc + src_tlm + src_main) |