I found out why cc1 and also GDB had a segfault after I fixed the user emulator. Branch distances over 1MB were not calculated correctly, shift operation was done before sign extension. That made the 1MB branches negative, and probably corrupted 2MB branches.

Now I can compile some programs either using the user emulator or inside the system emulator, debugging with GDB works as well! If only Qemu worked on Sparc32, we could try if Qemu can be used to compile itself.

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.com/

Attachment: sparc-branch.diff.bz2
Description: Binary data

_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to