Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - PPC SMP IPI_CONTEXT_SAVE and Altivec/SPE: (2 Items)
   
PPC SMP IPI_CONTEXT_SAVE and Altivec/SPE  
Can anyone explain for me why IPI_CONTEXT_SAVE only saves the FPU context and not the alt context (e.g. Altivec or SPE)?
  Is it because that's already handled in some other way?
Re: PPC SMP IPI_CONTEXT_SAVE and Altivec/SPE  
The FPU register aren't always saved out to memory on context switches, so
the IPI_CONTEXT_SAVE makes sure the in memory values are up to date. With
Altivec/SPE, we aren't as fully optimized and the in memory values are always
in sync with the register values, so the IPI_CONTEXT_SAVE doesn't have to
do anything.

	Brian

On Wed, Apr 08, 2009 at 09:23:24PM -0400, Neil Schellenberger wrote:
> Can anyone explain for me why IPI_CONTEXT_SAVE only saves the FPU context and not the alt context (e.g. Altivec or 
SPE)?  Is it because that's already handled in some other way?
> 
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post26475
> 

-- 
Brian Stecher (bstecher@qnx.com)        QNX Software Systems
phone: +1 (613) 591-0931 (voice)        175 Terence Matthews Cr.
       +1 (613) 591-3579 (fax)          Kanata, Ontario, Canada K2M 1W8