permit unaligned memory access on sparc

Eric Frias efrias at syncad.com
Wed Nov 17 13:07:46 CST 2004


This change was a little bit controversial.  Usually on the sparc-solaris,
an unaligned memory read results in a signal (SIGBUS I think) to your
process and wine turns that into a structured exception and will probably
take your application down in flames.  This patch causes the unaligned
memory access to proceed, but you take a performance hit whenever there is
an unaligned access.  Some (on wine-devel a few weeks ago) thought it was a
good thing, since it makes wine on sparc behave like wine on x86, but some
thought it was bad because it could hide errors in user code unrelated to
wine.  Personally, I sleep better at night with it in place.

Eric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unaligned-access.diff
Type: application/octet-stream
Size: 960 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20041117/b55412db/unaligned-access.obj


More information about the wine-patches mailing list