[PATCH v2 2/5] m68k: Fix writew(), writel(), readw(), readl() endianness

Daniel Palmer daniel at thingy.jp
Tue Apr 7 02:58:16 CEST 2026


Hi Kuan-Wei,

On Tue, 7 Apr 2026 at 02:15, Kuan-Wei Chiu <visitorckw at gmail.com> wrote:
> Just wondering could this global change break some drivers on coldfire?

It might. Really I'd like Angelo to see if it still works. Hopefully
it doesn't break anything or it's just one or two things that need to
be fixed to make it work again.
In Linux the range for the in-chip registers uses the current
behaviour and everything else uses the "correct" behaviour. I think we
want to avoid having that hack if possible.

> I originally thought you were planning to split these IO macros between
> coldfire and classic m68k.

Yeah, but then we have to fix it again if a coldfire virt machine
happens. If it breaks coldfire so badly it's difficult to fix I'll
split them.

> Of course, if you've found that this doesn't actually break coldfire,
> then this global approach is definitely ideal.

Yep. I forgot that there is actually a coldfire machine in qemu so I
will build and test this on that a bit later.

Cheers,

Daniel


More information about the U-Boot mailing list