<p dir="ltr"><br>
On Aug 20, 2014 9:29 PM, "Joel Sherrill" <<a href="mailto:joel.sherrill@oarcorp.com">joel.sherrill@oarcorp.com</a>> wrote:<br>
><br>
><br>
> On 8/20/2014 1:23 PM, Hesham Moustafa wrote:<br>
> > Hi,<br>
> ><br>
> > When I was building the new or1ksim/OpenRISC BSP with --enable-tests<br>
> > option. I got some errors from the spcache01/init.c compilation. The<br>
> > error is related to assembler<br>
> > "spcache01/init.c:117: Error: unrecognized instruction `nop'"<br>
> ><br>
> > Which is generated from the following line:<br>
> ><br>
> > "#define I() __asm__ volatile ("nop")"<br>
> ><br>
> > Should this test be target/feature dependent?<br>
> I am surprised that the or1k assembly doesn't include a nop instruction.<br>
> It seems to have been in the 18 other architectures before. :)<br>
><br>
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.<br>
> Worst case, it should be something like this:<br>
><br>
> #if or1k<br>
> #else<br>
> #endif<br>
><br>
> The idea of having assembly in a test is bothersome anyway.<br>
><br>
> Christian.. I will ask about universality of nop on binutils and cc<br>
> you two.<br>
><br>
> In the mean time, put a workaround in place Hesham.<br>
> > Thanks,<br>
> > Hesham<br>
> > _______________________________________________<br>
> > devel mailing list<br>
> > <a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
> > <a href="http://lists.rtems.org/mailman/listinfo/devel">http://lists.rtems.org/mailman/listinfo/devel</a><br>
><br>
> --<br>
> Joel Sherrill, Ph.D. Director of Research & Development<br>
> joel.sherrill@OARcorp.com On-Line Applications Research<br>
> Ask me about RTEMS: a free RTOS Huntsville AL 35805<br>
> Support Available (256) 722-9985<br>
><br>
</p>