Skip to contentSkip to conversation

Fix Sparc32/64 branch distance calculation, GCC and GDB works!

PATCH New Blue Swirl 1 participant 1 message Jun 20, 2006

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

PATCH 1/1 Fix Sparc32/64 branch distance calculation, GCC and GDB works!

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/