config.dot move to separate section

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-03-24 00:00:00 +00:00
parent 5ef9d3d1c9
commit 69f5745d3d

View File

@@ -12358,14 +12358,6 @@ Each node has:
+ +
For example, `AtomicSimpleCPU` maps is defined at https://github.com/gem5/gem5/blob/05c4c2b566ce351ab217b2bd7035562aa7a76570/src/cpu/simple/AtomicSimpleCPU.py#L45[src/cpu/simple/AtomicSimpleCPU.py]. For example, `AtomicSimpleCPU` maps is defined at https://github.com/gem5/gem5/blob/05c4c2b566ce351ab217b2bd7035562aa7a76570/src/cpu/simple/AtomicSimpleCPU.py#L45[src/cpu/simple/AtomicSimpleCPU.py].
You can also get a simplified graphical view of the tree with:
....
xdg-open "$(./getvar --arch arm --emulator gem5 m5out_dir)/config.dot.pdf"
....
Modifying the `config.ini` file manually does nothing since it gets overwritten every time.
Set custom configs with the `--param` option of `fs.py`, e.g. we can make gem5 wait for GDB to connect with: Set custom configs with the `--param` option of `fs.py`, e.g. we can make gem5 wait for GDB to connect with:
.... ....
@@ -12374,6 +12366,21 @@ fs.py --param 'system.cpu[0].wait_for_remote_gdb = True'
More complex settings involving new classes however require patching the config files, although it is easy to hack this up. See for example: link:patches/manual/gem5-semihost.patch[]. More complex settings involving new classes however require patching the config files, although it is easy to hack this up. See for example: link:patches/manual/gem5-semihost.patch[].
Modifying the `config.ini` file manually does nothing since it gets overwritten every time.
===== gem5 config.dot
The `m5out/config.dot` file contains a graphviz `.dot` file that provides a simplified graphical view of a subset of the <<gem5-config-ini>>.
This file gets automatically converted to `.svg` and `.pdf`, which you can view after running gem5 with:
....
xdg-open "$(./getvar --arch arm --emulator gem5 m5out_dir)/config.dot.pdf"
xdg-open "$(./getvar --arch arm --emulator gem5 m5out_dir)/config.dot.svg"
....
An example of such file can be seen at: <<config-dot-svg-timingsimplecpu>>.
=== m5term === m5term
We use the `m5term` in-tree executable to connect to the terminal instead of a direct `telnet`. We use the `m5term` in-tree executable to connect to the terminal instead of a direct `telnet`.