fenv support vs. SMP systems

Sebastian Huber <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
Hello,

the new fenv support alters usually some floating-point status and 
control register. This register is usually specific to the processor 
executing the code. In an SMP system, the current approach can lead to 
an inconsistent system if the register is not included in the thread 
context (for example in RTEMS these registers are considered to be 
system wide and are only initialized during the system startup). What do 
I mean with inconsistent system? For example, you set the rounding mode 
on processor A to from X (= default) to Y, then the you migrate to 
processor B and suddenly use the default rounding mode X. Another 
example is to do a division by zero on processor A and then migrate to 
processor B and check the exception flags.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : [email protected]
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.