Firefox will crash when visiting www.hp.com on Sparc platform.
Created attachment 386970 [details] [diff] [review]
The following code was generated for www.hp.com
sethi %hi(0xec847000), %l0
bset 0x00000088, %l0 ! 0xec847088
sethi %hi(0x1400), %l0
bset 0x000001fc, %l0 ! 0x15fc
st %l0, [%i0 + %l0]
Register %l0 was recovered by itself.
The reason here is that register L0 is used as a temporary register in a lot of micros. So when these macros are used, L0 should not be used any more. We need other temporary registers. So use L2 to replace L0 in NativeSparc.cpp.
Pushed into mozilla-1.9.1 as NPOTB code.
Leon, or anyone with sparc, can you verify this fix on trunk and a 1.9.1 nightly?
Please change the status to verified and keyword to verified188.8.131.52 also. Thanks.