Hi all, On Tue, 10 Mar 2026 at 23:01, Daniel Palmer <[email protected]> wrote: > > From: Daniel Palmer <[email protected]> > > This is an attempt to *fix* virtio mmio on the QEMU m68k virt machine. > As far as I can tell all of the registers in the virtio mmio regions > should be little endian so after reading them they need to be converted > to big endian for the code to work on them? other parts of the code > are also doing endian conversion so I'm not sure. > > Or QEMU is incorrectly giving big endian register values? > ---
I have a patch for this in my Linux tree too so I sent that: https://lore.kernel.org/lkml/[email protected]/T/#mab66837bb90c30916fd0fc066245bdeb9918e96c It would seem our versions of readl(), writel() etc are broken. For Linux the nommu versions are broken, for u-boot it seems they are all broken. By broken I mean they should be expecting a little endian value from the access and then converting to the CPU endian. (I think) Cheers, Daniel

