From 6ee31fb9d6690b72efb7935b7023370cd3a9bab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89der=20F=2E=20Zulian?= Date: Tue, 28 May 2019 12:05:33 +0200 Subject: [PATCH] improvement --- README.md | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index efa273b3..956d8b07 100644 --- a/README.md +++ b/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.