[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] MiNTLib for ColdFire : DONE !



Peter Persson wrote:
Ok, tricky. MVS and MVZ could be trapped and emulated,

Yes, we could do that if someone wants to add compatibility for ColdFire binaries on 680x0, but I don't think it is a good idea ;-)

> but the MAC
instructions screw things up.. Didier solved the latter by using an unused TRAP instruction.

Yes, the Line A and MAC instructions share the same opcodes, and it is untrappable. This is a big problem for the ColdFire OS. ColdFire programs should just avoir do use Line A, like any modern applications.

> Is this something which could be added to the
kernel as well? It does make it slightly easier to write code for both systems, since I woudn't have to check which CPU I'm running on.

I really don't like the idea of making "compatible binaries", because it would be suboptimal on any system. Some kind of "fat binaries" like on MacOS could do the trick, but I really don't want to see that.

--
Vincent Rivière