You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To avoid typing `--arch aarch64` so many times, set the default arch as explained at: <<default-command-line-arguments>>
94
+
To avoid typing `--arch aarch64` many times, you set the default arch as explained at: <<default-command-line-arguments>>
95
95
96
96
See also: <<cpu-architecture,CPU architectures>>.
97
97
@@ -221,11 +221,11 @@ and the new `pr_info` message should now show on the terminal at the end of the
221
221
222
222
This works because we have a <<9p>> mount there setup by default, which makes a host directory available on the guest.
223
223
224
-
The fast is slightly risky because your kernel module might have corrupted the kernel memory, which could affect future runs.
224
+
The fast method is slightly risky because your kernel module might have corrupted the kernel memory, which could affect future runs.
225
225
226
226
Such failures are however unlikely, and you should be fine if you don't see anything weird happening.
227
227
228
-
The safe way, is to fist quit QEMU, then rebuild the modules, put them in the root filesystem, and then reboot:
228
+
The safe way, is to fist quit QEMU, rebuild the modules, put them in the root filesystem, and then reboot:
229
229
230
230
....
231
231
./build-modules
@@ -310,7 +310,11 @@ Read the following sections for further introductory material:
310
310
311
311
This setup is like the <<qemu-buildroot-setup>>, but it uses link:http://gem5.org/[gem5] instead of QEMU as a system simulator.
312
312
313
-
QEMU tries to run as fast as possible and give correct results at the end, but it does not tell us how many CPU cycles it takes to do something, just the number of instructions it ran, and this cannot be used to estimate system performance. This is known as a functional simulation.
313
+
QEMU tries to run as fast as possible and give correct results at the end, but it does not tell us how many CPU cycles it takes to do something, just the number of instructions it ran.
314
+
315
+
The number of instructions executed is a very poor estimator of performance because in modern computers, a lot of time is spent waiting for memory requests rather than the instructions themselves.
316
+
317
+
This kind of simulation is known as functional simulation.
314
318
315
319
gem5 on the other hand, can simulate the system in more detail than QEMU, including:
316
320
@@ -351,13 +355,13 @@ You can quit the shell without killing gem5 by typing tilde followed by a period
351
355
~.
352
356
....
353
357
354
-
If you are inside <<tmux>>, which I highly recommend, just run gem5 with:
358
+
If you are inside <<tmux>>, which I highly recommend, you can both run gem5 stdout and open the guest terminal on a split window with:
355
359
356
360
....
357
361
./run --gem5 --tmux
358
362
....
359
363
360
-
This will open up a split terminal by default so that you can see both the gem5 stdout and the terminal. See also: <<tmux-gem5>>.
364
+
See also: <<tmux-gem5>>.
361
365
362
366
At the end of boot, it might not be very clear that you have the shell since some <<printk>> messages may appear in front of the prompt like this:
0 commit comments