system doesn't stop!

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
pillow

Re:system doesn't stop!

Post 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?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:system doesn't stop!

Post 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 ...
Post Reply