That's right,I hope I can have time to fix the alignment issues in spice(such as in generated_marshallers.c and quic.s,etc..),or some guys can try this now?<br><br><div class="gmail_quote">On Mon, May 16, 2011 at 6:27 PM, Christophe Fergeau <span dir="ltr"><<a href="mailto:cfergeau@redhat.com">cfergeau@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Mon, May 16, 2011 at 05:12:10PM +0800, Shuxiang Lim wrote:<br>
> Hi,all!<br>
> I've mentioned before about the common/quic.c will cause SIGBUG on ARM,<br>
> then I walked around it by '-O0',it works for armv5,armv7,but I've just<br>
> found this didn't work for ARM9,so I have to do the final and fool way to<br>
> rewrite some statements in quic.c with memcpy() like this:<br>
> *#ifdef ANDROID<br>
> memcpy(&encoder->io_next_word, encoder->io_now++,sizeof(uint32_t));<br>
> #else<br>
> encoder->io_next_word = *(encoder->io_now++);<br>
> #endif<br>
<br>
</div>We really need to fix all these unaligned accesses. In quic's case, I'm<br>
wondering whether we could make sure that the buffer we're accessing is<br>
alinged on a 4 byte boundary?<br>
<font color="#888888"><br>
Christophe<br>
</font><br>_______________________________________________<br>
Spice-devel mailing list<br>
<a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
<br></blockquote></div><br>