diff options
author | Christian Menard <Christian.Menard@tu-dresden.de> | 2017-02-09 19:15:30 -0500 |
---|---|---|
committer | Christian Menard <Christian.Menard@tu-dresden.de> | 2017-02-09 19:15:30 -0500 |
commit | b25ea094d4350b8257d5f383a123ea620b614adf (patch) | |
tree | bf2be24b719fb45325012542bb77288f18ccb66e /util/tlm/sc_mm.hh | |
parent | 41a61589545c284d109019c3cb528762b8345aa0 (diff) | |
download | gem5-b25ea094d4350b8257d5f383a123ea620b614adf.tar.xz |
misc: Clean up and complete the gem5<->SystemC-TLM bridge [1/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:
* Restructure the existing sources in preparation of the addition of the
* new
Master Port.
* Refractor names to allow for distinction of the slave and master port.
* Replace the Makefile by a SConstruct.
Testing Done: The examples provided in util/tlm (now
util/tlm/examples/slave_port) still compile and run error free.
Reviewed at http://reviews.gem5.org/r/3527/
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'util/tlm/sc_mm.hh')
-rw-r--r-- | util/tlm/sc_mm.hh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/util/tlm/sc_mm.hh b/util/tlm/sc_mm.hh index 86d9ee11c..81316e7f6 100644 --- a/util/tlm/sc_mm.hh +++ b/util/tlm/sc_mm.hh @@ -34,13 +34,16 @@ * Matthias Jung */ -#ifndef MEMORYMANAGER_H_ -#define MEMORYMANAGER_H_ +#ifndef __SC_MM_HH__ +#define __SC_MM_HH__ #include <tlm.h> #include <vector> +namespace Gem5SystemC +{ + typedef tlm::tlm_generic_payload gp; class MemoryManager : public tlm::tlm_mm_interface @@ -57,4 +60,6 @@ class MemoryManager : public tlm::tlm_mm_interface std::vector<gp*> freePayloads; }; -#endif /* MEMORYMANAGER_H_ */ +} + +#endif /* __SC_MM_HH__ */ |