Doc improved + path to find gem5 library
This commit is contained in:
@@ -25,6 +25,7 @@ message(SystemC target architecture is $${systemc_target_arch})
|
|||||||
unix:!macx {
|
unix:!macx {
|
||||||
message(Building on a GNU/Linux)
|
message(Building on a GNU/Linux)
|
||||||
QMAKE_RPATHDIR += $${systemc_home}/lib-$${systemc_target_arch}
|
QMAKE_RPATHDIR += $${systemc_home}/lib-$${systemc_target_arch}
|
||||||
|
QMAKE_RPATHDIR += $${gem5_root}/build/$${gem5_arch}
|
||||||
message(Linker options QMAKE_RPATHDIR is $${QMAKE_RPATHDIR})
|
message(Linker options QMAKE_RPATHDIR is $${QMAKE_RPATHDIR})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
21
README.md
21
README.md
@@ -1454,7 +1454,7 @@ scons --with-cxx-config --without-python build/ARM/libgem5_opt.so
|
|||||||
cd util/tlm
|
cd util/tlm
|
||||||
```
|
```
|
||||||
|
|
||||||
In order to use gem5 with DRAMSys set the GEM5 environment variable to the path
|
In order to use gem5 with DRAMSys set the **GEM5** environment variable to the path
|
||||||
to gem5, for example in the QtCreator under Projects > Build & Run > Build
|
to gem5, for example in the QtCreator under Projects > Build & Run > Build
|
||||||
Environment:
|
Environment:
|
||||||
|
|
||||||
@@ -1462,11 +1462,24 @@ Environment:
|
|||||||
GEM5=/path/to/gem5/
|
GEM5=/path/to/gem5/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
optionally, export environment variables in your **~/.bashrc** file or
|
||||||
|
equivalent and open a new terminal:
|
||||||
|
|
||||||
|
```
|
||||||
|
# In this example gem5 is located at $HOME/gem5 (that is your home folder).
|
||||||
|
# Modify the variable to use the correct location.
|
||||||
|
export GEM5=$HOME/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
|
||||||
|
```
|
||||||
|
|
||||||
DRAMSys will detect gem5 and configures automatically the according compile
|
DRAMSys will detect gem5 and configures automatically the according compile
|
||||||
target *gem5* for QtCreator.
|
target *gem5* for QtCreator.
|
||||||
|
|
||||||
In order to run gem5 with DRAMSys its mandatory to run gem5 first without
|
In order to run gem5 with DRAMSys it is mandatory to run gem5 first without
|
||||||
DRAMSys in order to generate an ini file which will be read by the DRAMSys_gem5
|
DRAMSys in order to generate an **.ini** file which will be read by the DRAMSys_gem5
|
||||||
binary. In the following several examples for DRAMSys gem5 bindings are shown.
|
binary. In the following several examples for DRAMSys gem5 bindings are shown.
|
||||||
|
|
||||||
### DRAMSys with gem5 traffic generator
|
### DRAMSys with gem5 traffic generator
|
||||||
@@ -1479,7 +1492,7 @@ Base System Architecture:
|
|||||||
| System Port | | TGEN | |
|
| System Port | | TGEN | |
|
||||||
+-------+-----+ +--+---+ |
|
+-------+-----+ +--+---+ |
|
||||||
| | | gem5 World
|
| | | gem5 World
|
||||||
| +----+ | (see this file)
|
| +----+ |
|
||||||
| | |
|
| | |
|
||||||
+-------v------v-------+ |
|
+-------v------v-------+ |
|
||||||
| Membus | v
|
| Membus | v
|
||||||
|
|||||||
Reference in New Issue
Block a user