VOGONS


First post, by M-HT

User metadata
Rank Newbie
Rank
Newbie

Some ARM CPUs use little-endian byte ordering for integers, but use big-endian word ordering for double floating-point numbers.
This causes a bug in some FPU instructions, because dosbox assumes that byte ordering for integers and word ordering for doubles is the same.

Proposed fix is in the attachment.

Attachments

  • Filename
    fpufix.diff
    File size
    16.21 KiB
    Downloads
    185 downloads
    File comment
    diff against svn revision 3637
    File license
    Fair use/fair dealing exception

Reply 1 of 1, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Some ARM CPUs use little-endian byte ordering for integers, but use big-endian word ordering for double floating-point numbers.

So they were like "big endian was fun to piss off x86, now mix things to get
even more fun out of this" and did that intentionally? Nice 😀