or1k nop was Re: Bug at spcache01/init.c ?

Hesham Moustafa heshamelmatary at gmail.com
Wed Aug 20 19:49:34 UTC 2014


On Aug 20, 2014 9:29 PM, "Joel Sherrill" <joel.sherrill at oarcorp.com> wrote:
>
>
> On 8/20/2014 1:23 PM, Hesham Moustafa wrote:
> > Hi,
> >
> > When I was building the new or1ksim/OpenRISC BSP with --enable-tests
> > option. I got some errors from the spcache01/init.c compilation. The
> > error is related to assembler
> > "spcache01/init.c:117: Error: unrecognized instruction `nop'"
> >
> > Which is generated from the following line:
> >
> > "#define I() __asm__ volatile ("nop")"
> >
> > Should this test be target/feature dependent?
> I am surprised that the or1k assembly doesn't include a nop instruction.
> It seems to have been in the 18 other architectures before. :)
>
It has a nop instruction but its mnemonic is l.nop. As every or1k assembly
instruction is prefixed with l. where l.xxx is a pattern for assembly
instructions.
> Worst case, it should be something like this:
>
> #if or1k
> #else
> #endif
>
> The idea of having assembly in a test is bothersome anyway.
>
> Christian.. I will ask about universality of nop on binutils and cc
> you two.
>
> In the mean time, put a workaround in place Hesham.
> > Thanks,
> > Hesham
> > _______________________________________________
> > devel mailing list
> > devel at rtems.org
> > http://lists.rtems.org/mailman/listinfo/devel
>
> --
> Joel Sherrill, Ph.D.             Director of Research & Development
> joel.sherrill at OARcorp.com        On-Line Applications Research
> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> Support Available                (256) 722-9985
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20140820/60ac1e30/attachment-0002.html>


More information about the devel mailing list