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.
Now it just silently reboots (or silently quits with -no-reboot).
I'm not sure what changed or when (I haven't had triple faults in a while), so I'm not sure how to fix this.
Is there a way to get the old, useful behavior back?
Triple faults are occasionally used for intentional CPU resets and in such cases you don't want qemu to exit. So the old behaviour was wrong and you can't get exactly the same back.
If you need the information for debugging, use the debug log with -d cpu_reset (or actually you probably also want to log exceptions, so -d int,cpu_reset).
Ignore the first two resets, they are actually the inital state after the CPU is powered on. The CPU state dumped after the "Triple fault" message is the right one, and that works fine for me (except that -d cpu_reset is broken in current git master, reporting this now...)
I assume that is why I get no log output after "Triple fault"?
Well thanks for your help, at least; I'm going to try to find a version of qemu that reacts correctly to triple faults; I'll post here if I find anything.
Huh. That got it to sort-of work, but now I have several megabytes of identical log messages in /tmp/qemu.log. How do I get it quit on triple fault (and preferably print the dump to stderr)?
If you don't leave qemu running after you got the triple fault, you can certainly be quick enough with closing it before the log file grows to several megabytes. Yes, my log files sometimes do have the logs of five reboots. So what?
My OS is crashing in the boot loader (I turned on optimization and it seems to have swapped the order of .text and .rodata); also I have fast cpu and a really slow brain (thats why I got into programming).
Thanks for your help though; hopefully I'll be able to add some junk to the test script to extract the dump from /tmp/qemu.log.
ixos wrote:My OS is crashing in the boot loader (I turned on optimization and it seems to have swapped the order of .text and .rodata); also I have fast cpu and a really slow brain (thats why I got into programming).
Heh, good point. You needto put /tmp on a floppy, obviously, so it will match your speed again.