[Cbe-oss-dev] [PATCH] force -mno-string option on cell
Arnd Bergmann
arnd at arndb.de
Sat Mar 24 07:46:20 EST 2007
On Friday 23 March 2007, Segher Boessenkool wrote:
> CFLAGS_whatever.o := -msome-flags
>
> It would be even better to not lie to the compiler by
> telling it it can use the LS area as normal memory, since
> evidently it cannot :-)
Yes, this is the important point. I actually think the first
patch that just replaces memcpy with memcpy_fromio is the
right solution for the specific problem.
Avoiding certain instructions in the kernel may be a good
thing to do as well, but this is not at all a cell specific
thing.
Maybe we should have a more detailed CPU selection Kconfig
option like
CPU Family
* 64 bit common (power3/4/5/6, ppc970, cell, *star)
* 32 bit common (6xx, 82xx, 83xx, 86xx)
* 40x/44x
* ...
Minimum supported CPU (gcc -march=, depending on above selection)
* 603
* 604
* 750
* power3
* power4
* 970
Optimize for CPU (gcc -mtune)
(subset of the -march list as before)
Arnd <><
More information about the Linuxppc-dev
mailing list