calling giveup_altivec on machine with no altivec!?
Troy Benjegerdes
hozer at drgw.net
Sun Feb 18 13:41:25 EST 2001
On Thu, Feb 15, 2001 at 05:57:18PM -0500, Dan Malek wrote:
> Troy Benjegerdes wrote:
>
> > Somehow prev->thread.regs->msr & MSR_VEC turned out true. I'm suspecting
> > something got overwritten somewhere..
>
> Crap....
>
> > This is an SMP machine so I'm wondering if there wasn't a race condition
> > on something with task structs..
>
> Ahhhh, wait a minute......does SMP do the lazy Altivec or does it
> always switch it? On uP systems, MSR_VEC isn't set unless you get an
> Altivec trap, but I seem to remember comments about always switching it
> on SMP systems. On an SMP system, if you don't really have Altivec
> you probably shouldn't enable it in the configuration.....no common
> config here :-).
Well, in theory yes, but the fact that MSR_VEC mysteriously got set
implies some other problem somewhere... I also think Common config's are
just too usefull, since more code paths get tested on more machines..
there's something that set MSR_VEC that shouldn't have, and I'd never have
seen it if I didn't have a common config.
SMP does 'somewhat' lazy altivec.. if the process used altivec, it
always switches. UP I think switches only when a second process actually
tries to use altivec, and another process already has data in registers.
--------------------------------------------------------------------------
Troy Benjegerdes 'da hozer' hozer at drgw.net
Somone asked my why I work on this free (http://www.fsf.org/philosophy/)
software stuff and not get a real job. Charles Shulz had the best answer:
"Why do musicians compose symphonies and poets write poems? They do it
because life wouldn't have any meaning for them if they didn't. That's why
I draw cartoons. It's my life." -- Charles Shulz
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list