Sujet : Re: register sets
De : quadibloc (at) *nospam* invalid.invalid (John Savard)
Groupes : comp.archDate : 15. Jul 2025, 05:56:53
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <1054n2l$3svsg$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : Pan/0.146 (Hic habitat felicitas; d7a48b4 gitlab.gnome.org/GNOME/pan.git)
On Thu, 17 Apr 2025 13:35:36 +0000, Scott Lurndal wrote:
Many modern CPUs including intel/amd have mechanisms that the OS can use
to determine if floating point registers have been used since the user
process was dispatched, including a trap to the OS on the first floating
point use. This allows them to avoid saving and restoring the FP
registers during context switches.
That certainly is helpful. But if a user program happens not to have
done any floating-point computations during a particular time-slice,
but did perform some earlier which it will later continue, it could be
that while the FP registers don't need to be saved, they will still
need to be restored on returning to that task from the old copy.
So a mechanism like that still has to be used carefully, and it
doesn't just make the whole problem disappear.
John Savard