This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Compiler options for PowerPC
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Jakob Lechner <jakob dot lechner at student dot tuwien dot ac dot at>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 6 Aug 2007 19:05:11 +0200
- Subject: Re: Compiler options for PowerPC
- References: <20070806003827.ribtz103cww40wg8@webmail.tuwien.ac.at>
If your simulator doesn't support the actual instruction, rlwinm
in this case, you better get it fixed.
The rlwinm instruction of course is supported.
Good :-)
I accidentally thought
the clrlwi instruction was the problem but it turned out that in fact
the simulator aborts when executing the dcbt instruction.
This instruction is a cache prefetch instruction.
Is there a compiler option for disabling the dcbt instruction and
similar cache control instructions?
See Ian's answer.
It probably would be best for you to get the simulator fixed
anyway; since the simulator doesn't seem to simulate the caches
at all (or it would definitely have to support the dcbX insns!),
it can just "nop" that instruction. Should be really easy to
add to the simulator.
Segher