This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiler options for PowerPC


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]