system doesn't stop!
Re:system doesn't stop!
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?
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:system doesn't stop!
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 ...
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 ...