improvement
This commit is contained in:
32
README.md
32
README.md
@@ -2010,7 +2010,7 @@ export PYTHON_HEADERS=/usr/include/python3.6m
|
||||
export GEM5=$HOME/gem5_tnt/gem5
|
||||
|
||||
# Gem5 SystemC TLM-2.0 coupling (see also: $HOME/gem5_tnt/gem5/util/tlm/README)
|
||||
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${HOME}/gem5_tnt/gem5/build/ARM
|
||||
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GEM5}/build/ARM
|
||||
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${SYSTEMC_HOME}/lib-$SYSTEMC_TARGET_ARCH
|
||||
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${SYSTEMC_HOME}/lib-$SYSTEMC_TARGET_ARCH/pkgconfig
|
||||
|
||||
@@ -2038,27 +2038,43 @@ export DRAMSYS_DISABLE_COVERAGE_CHECK=1
|
||||
|
||||
### DRAMSys + GEM5 x86
|
||||
|
||||
Change your ~/.bashrc. After that close all terminals and open a new terminal.
|
||||
Make sure you have built **gem5/build/X86/libgem5_opt.so**. If you build with
|
||||
[gem5.TnT] you can check if the library exists as follows.
|
||||
|
||||
```bash
|
||||
# Gem5 SystemC TLM-2.0 coupling (see also: $HOME/gem5_tnt/gem5/util/tlm/README)
|
||||
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GEM5}/build/X86
|
||||
#export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${HOME}/gem5_tnt/gem5/build/ARM
|
||||
$ ls $HOME/gem5_tnt/gem5/build/X86/libgem5_opt.so
|
||||
```
|
||||
|
||||
Change your ~/.bashrc.
|
||||
|
||||
```bash
|
||||
# In this example gem5 is located at $HOME/gem5_tnt/gem5.
|
||||
export GEM5=$HOME/gem5_tnt/gem5
|
||||
|
||||
# Add the folder containing libgem5_opt.so to the list where libraries should
|
||||
# be searched for.
|
||||
#export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GEM5}/build/ARM
|
||||
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GEM5}/build/X86
|
||||
```
|
||||
|
||||
After that close QtCreator and all terminals.
|
||||
|
||||
Open a new terminal.
|
||||
|
||||
Change the architecture in [DRAMSys/gem5/gem5.pro](DRAMSys/gem5/gem5.pro).
|
||||
|
||||
```
|
||||
gem5_arch = 'X86'
|
||||
```
|
||||
|
||||
Make sure you have built **gem5/build/X86/libgem5_opt.so**. If you build with
|
||||
[gem5.TnT] you can check if the library exists as follows.
|
||||
Delete the file **DRAMSys/DRAMSys.pro.user** from the repository.
|
||||
|
||||
```bash
|
||||
$ ls $HOME/gem5_tnt/gem5/build/X86/libgem5_opt.so
|
||||
$ rm DRAMSys/DRAMSys.pro.user
|
||||
```
|
||||
|
||||
Open a new QtCreator.
|
||||
|
||||
Build DRAMSys as usual.
|
||||
|
||||
After building, go the the folder where *DRAMSys_gem5* is located.
|
||||
|
||||
Reference in New Issue
Block a user