Re:With PowerPC, Windows CE and the WiiN-Pad Slate, Everyone...
by crest on Tuesday May 07, 2024 @08:36AM
(#40284740)
Given that PowerPC supports indexed load/store instructions with reversed endianness it's doesn't cost extra cycles or code size to access little-endian peripherals. The real problem is how fragile drivers are these days.
It is notoriously difficult to write bi-endian code though. I really wish there were assembly directives to change the word swapping per instruction instead of doing it manually, for my own sanity.
I think the 970 supports this too, but it’s a bit weirder with the MSR.HV settings.
Note that little endian mode on PPC affects all memory accesses, including real mode when MSR.ILE is set.