That&#39;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">&lt;<a href="mailto:cfergeau@redhat.com">cfergeau@redhat.com</a>&gt;</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>
&gt; Hi,all!<br>
&gt;    I&#39;ve mentioned before about the common/quic.c will cause SIGBUG on ARM,<br>
&gt; then I walked around it by &#39;-O0&#39;,it works for armv5,armv7,but I&#39;ve just<br>
&gt; found this didn&#39;t work for ARM9,so I have to do the final and fool way to<br>
&gt; rewrite some statements in quic.c with memcpy() like this:<br>
&gt; *#ifdef ANDROID<br>
&gt;      memcpy(&amp;encoder-&gt;io_next_word, encoder-&gt;io_now++,sizeof(uint32_t));<br>
&gt; #else<br>
&gt;      encoder-&gt;io_next_word = *(encoder-&gt;io_now++);<br>
&gt; #endif<br>
<br>
</div>We really need to fix all these unaligned accesses. In quic&#39;s case, I&#39;m<br>
wondering whether we could make sure that the buffer we&#39;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>