[Cbe-oss-dev] GCC inline memcpy() from local store causes bad page fault

Segher Boessenkool segher at kernel.crashing.org
Wed Mar 21 04:55:28 EST 2007

> While you're at it, please check if load/store multiple
> insns have this problem too, and add -mno-multiple if
> needed.  Also, old CBE used to have the same problem with
> lwa insns; I have this old patch to GCC to add an -m option
> to disable its use, I could try to dig it up if the problem
> is still there on new CBEs?

I looked it up, and indeed both multiple load/store and
sign extending load insns to cache-inhibited space cause
an alignment exception.

So do add -mno-multiple and -mno-string, and I'll look at
digging up my -mno-lwa patch (it turns out lha is affected
too -- what would be a good name, -mno-algebraic-load?)


More information about the cbe-oss-dev mailing list