On Mon, Oct 22, 2012 at 12:04:03PM +0100, R. Diez wrote: > > > Regarding the delay slot coding, why don't you mention the > > > availability of the macros in the or1k-asm.h header > > I was trying to encourage writing a single binary that runs on CPUs with and > without jump delay slots, and those macros don't allow you to do that. > Furthermore, they make the code a little uglier. But I'll mention them anyway.
When __OR1K_DELAY_COMPAT__ is defined it will. Plus, it will allow you to recompile it more targeted if you wish. Another method that doesn't require including the or1k-asm.h header is to do the following: l.j someplace #ifndef __OR1K_NODELAY__ l.nop #endif That should be pretty much compatible with anything, even the old toolchain. Stefan _______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
