util: Update the gem5_within_systemc README

Change-Id: Ife34fe5ccd00fa2c6a83f34af49333d49017dfed
This commit is contained in:
Roger Chang
2023-11-23 08:46:27 +08:00
parent 23e4525e29
commit 412cf3e644

View File

@@ -36,12 +36,13 @@ present in the "build" directory.
> cd ../../..
> scons build/ARM/gem5.opt
> scons --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=0 \
> scons setconfig build/ARM USE_SYSTEMC=n
> scons --with-cxx-config --without-python --without-tcmalloc \
> --duplicate-source build/ARM/libgem5_opt.so
> cd util/systemc
Note: For MAC / OSX this command should be used:
> scons --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=0 \
> scons --with-cxx-config --without-python --without-tcmalloc \
> --duplicate-sources build/ARM/libgem5_opt.dylib
Set a proper LD_LIBRARY_PATH e.g. for bash:
@@ -67,7 +68,7 @@ Then run make:
Make a config file for the C++-configured gem5 using normal gem5
> ../../../build/ARM/gem5.opt ../../../configs/example/se.py -c \
> ../../../build/ARM/gem5.opt ../../../configs/deprecated/example/se.py -c \
> ../../../tests/test-progs/hello/bin/arm/linux/hello
The binary 'gem5.opt.cxx' can now be used to load in the generated config