changeset ac5237fa4230 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=ac5237fa4230
description:
misc: Documentation Update
Updates for READMEs of /util/cxx_config, /util/systemc, /util/tlm.
Some minor corrections, mostly with respect to MAC/OSX
Signed-off-by: Jason Lowe-Power <[email protected]>
diffstat:
util/cxx_config/README | 9 +++++++++
util/systemc/README | 27 +++++++++++++++++++++++++--
util/tlm/README | 18 +++++++++++++++++-
3 files changed, 51 insertions(+), 3 deletions(-)
diffs (92 lines):
diff -r f1ffedcf3b98 -r ac5237fa4230 util/cxx_config/README
--- a/util/cxx_config/README Mon Jan 09 09:32:13 2017 -0600
+++ b/util/cxx_config/README Mon Jan 09 09:33:42 2017 -0600
@@ -19,6 +19,15 @@
> scons --with-cxx-config --without-python build/ARM/libgem5_opt.so
> cd util/cxx_config
+Note: For MAC / OSX this command should be used:
+> scons --with-cxx-config --without-python 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/"
+
+or for MAC / OSX:
+> export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/path/to/gem5/build/ARM/"
+
Then edit Makefile to set the paths for PYTHON and run make
> make
diff -r f1ffedcf3b98 -r ac5237fa4230 util/systemc/README
--- a/util/systemc/README Mon Jan 09 09:32:13 2017 -0600
+++ b/util/systemc/README Mon Jan 09 09:33:42 2017 -0600
@@ -32,9 +32,29 @@
> cd ../..
> scons build/ARM/gem5.opt
> scons --with-cxx-config --without-python build/ARM/libgem5_opt.so
-> cd util/cxx_config
+> cd util/systemc
-Then edit Makefile to set the paths for SystemC and run make
+Note: For MAC / OSX this command should be used:
+> scons --with-cxx-config --without-python 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/"
+
+or for MAC / OSX:
+> export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/path/to/gem5/build/ARM/"
+
+
+Then edit the Makefile to set the paths for SystemC, e.g:
+
+ Linux:
+ SYSTEMC_INC = /opt/systemc/include
+ SYSTEMC_LIB = /opt/systemc/lib-linux64
+
+ MAC / OSX:
+ SYSTEMC_INC = /opt/systemc/include
+ SYSTEMC_LIB = /opt/systemc/lib-macosx64
+
+Then run make:
> make
@@ -57,3 +77,6 @@
The .ini file can also be read by the Python .ini file reader example:
> ../../build/ARM/gem5.opt ../../configs/example/read_ini.py m5out/config.ini
+
+If you are interested in SystemC Transaction Level Modeling (TLM2) please have
+a look into /util/tlm.
diff -r f1ffedcf3b98 -r ac5237fa4230 util/tlm/README
--- a/util/tlm/README Mon Jan 09 09:32:13 2017 -0600
+++ b/util/tlm/README Mon Jan 09 09:33:42 2017 -0600
@@ -35,10 +35,26 @@
> scons --with-cxx-config --without-python build/ARM/libgem5_opt.so
> cd util/tlm
+Note: For MAC / OSX this command should be used:
+> scons --with-cxx-config --without-python 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/"
-Then edit the Makefile to set the paths for SystemC and run make
+or for MAC / OSX:
+> export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/path/to/gem5/build/ARM/"
+
+Then edit the Makefile to set the paths for SystemC:
+
+ Linux:
+ SYSTEMC_INC = /opt/systemc/include
+ SYSTEMC_LIB = /opt/systemc/lib-linux64
+
+ MAC / OSX:
+ SYSTEMC_INC = /opt/systemc/include
+ SYSTEMC_LIB = /opt/systemc/lib-macosx64
+
+Then run make:
> make
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev