diff options
author | Gabe Black <gabeblack@google.com> | 2018-11-21 17:59:16 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-11-29 08:50:52 +0000 |
commit | 6920ba70a9fbbe68e53d6cca4f34ed25ee4f7dc1 (patch) | |
tree | 199d6b5bb437e531c75cf3e000a08dec57cb01dc /util | |
parent | 5a2e13f973c2ecf1154bcfc83d8c59210eef56c7 (diff) | |
download | gem5-6920ba70a9fbbe68e53d6cca4f34ed25ee4f7dc1.tar.xz |
systemc: Update the gem5-within-systemc README to mention USE_SYSTEMC.
When linking with an external systemc host, the native gem5 systemc API
should be disabled to avoid linking conflicts.
Change-Id: If7f9b3718fcdbdab5ebc9ef52e746f6bf9f2fb9c
Reviewed-on: https://gem5-review.googlesource.com/c/14520
Reviewed-by: Matthias Jung <jungma@eit.uni-kl.de>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/systemc/gem5_within_systemc/README | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/util/systemc/gem5_within_systemc/README b/util/systemc/gem5_within_systemc/README index 9ee1103a8..6bfb0559a 100644 --- a/util/systemc/gem5_within_systemc/README +++ b/util/systemc/gem5_within_systemc/README @@ -26,16 +26,19 @@ Read main.cc for more details of the implementation and sc_... files for To build: First build gem5 as a library with cxx-config support and (optionally) -without python. Also build a normal gem5 (cxx-config not needed, Python -needed): +without python. When building the library, disable gem5's native SystemC +API support, as that will conflict with the external version. Also build a +normal gem5 (cxx-config not needed, Python needed): > cd ../../.. > scons build/ARM/gem5.opt -> scons --with-cxx-config --without-python build/ARM/libgem5_opt.so +> scons --with-cxx-config --without-python USE_SYSTEMC=0 \ +> build/ARM/libgem5_opt.so > cd util/systemc Note: For MAC / OSX this command should be used: -> scons --with-cxx-config --without-python build/ARM/libgem5_opt.dylib +> scons --with-cxx-config --without-python USE_SYSTEMC=0 \ +> build/ARM/libgem5_opt.dylib Set a proper LD_LIBRARY_PATH e.g. for bash: > export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/path/to/gem5/build/ARM/" |