On Mon, May 16, 2011 at 05:12:10PM +0800, Shuxiang Lim wrote:
> Hi,all!
>    I've mentioned before about the common/quic.c will cause SIGBUG on ARM,
> then I walked around it by '-O0',it works for armv5,armv7,but I've just
> found this didn't work for ARM9,so I have to do the final and fool way to
> rewrite some statements in quic.c with memcpy() like this:
> *#ifdef ANDROID
>      memcpy(&encoder->io_next_word, encoder->io_now++,sizeof(uint32_t));
> #else
>      encoder->io_next_word = *(encoder->io_now++);
> #endif

We really need to fix all these unaligned accesses. In quic's case, I'm
wondering whether we could make sure that the buffer we're accessing is
alinged on a 4 byte boundary?

Christophe

Attachment: pgpbAZAgcCcdq.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to