Memory Fence on MIPS
akirilov at minervanetworks.com
Wed Feb 22 18:14:58 CET 2012
> Thanks - "not tested extensively" means that you actually did compile and
> run it though? That is quite enough for me.
Yes, of course, I just had the impression that I should test with multicore
hardware, which I do not have access to.
> predef lists __mips__ as preferred symbol for gcc on mips - could you see
> whether this works with __mips__ as well?
Yes, it does.
I followed the information in a document entitled "MIPS Toolchain Speciﬁcs"
that is distributed with the Sourcery G++ Lite toolchain by CodeSourcery; an
older revision (which does not differ in this particular aspect) is available
Refer to section 2.8. The MIPS32 Instruction Set Quick Reference on the Web
site I mentioned in my previous message lists the same macro.
More information about the libev