diff --git a/README.adoc b/README.adoc index 09399da..f1e178a 100644 --- a/README.adoc +++ b/README.adoc @@ -866,11 +866,19 @@ TODOs: * only managed to run in the terminal interface (but weirdly a blank QEMU window is still opened) * GDB not connecting to KGDB. Possibly linked to `-serial stdio`. See also: https://stackoverflow.com/questions/14155577/how-to-use-kgdb-on-arm -* `/poweroff.out` does not exit QEMU, the terminal just hangs: https://stackoverflow.com/questions/31990487/how-to-cleanly-exit-qemu-after-executing-bare-metal-program-without-user-interve A blunt resolution is: +* `/poweroff.out` does not exit QEMU nor GEM5, the terminal just hangs: https://stackoverflow.com/questions/31990487/how-to-cleanly-exit-qemu-after-executing-bare-metal-program-without-user-interve ++ +A blunt resolution for QEMU is on host: + .... pkill qemu .... ++ +On GEM5, it is possible to use the `m5` instrumentation from guest as a good workaround: ++ +.... +m5 exit +.... * GDB step debugging of kernel modules broke at some point. This was noticed at 6420c31986e064c81561da8f2be0bd33483af598 and a likely candidate was the recent move to kernel v4.15, but this has to be bisected. + Just afte GDB connects, we get the following message from the kernel GDB Python scripts: