Page 2 of 2
Re:system doesn't stop!
Posted: Tue May 02, 2006 2:09 pm
by pillow
I remember running across this very problem some time ago as well. I guess the paramount question is why *doesn't* qemu stop execution after "cli;hlt" like it should? Is this a bug or is there something else going on that isn't obvious?
Re:system doesn't stop!
Posted: Wed May 03, 2006 1:28 am
by Pype.Clicker
the fact is, on x86, Qemu isn't an emulator like bochs. It actually runs the emulated code as native code in the host environment and uses SIGSEGVs to emulate what the system doesn't allow... but it may very well have bugs.
If you wish to find out, i suggest you recompile a copy of Qemu, execute your program until the "cli" instruction and then debug Qemu itself to find out what it does and why that doesn't match your assumptions ...