This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
FPU support implementation question.
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: [ECOS] FPU support implementation question.
- From: Sergei Organov <osv at javad dot ru>
- Date: 11 Apr 2000 19:04:27 +0400
Hello,
I'm implementing FPU support in the PowerPC HAL and have a design dilemma that
I'd like to discuss.
I have working version that is modeled after the MIPS HAL. Now I'd like to
start to implement advanced FPU support that will switch FPU context on
demand. This requires that FPU state is stored not in the CPU context as it is
now, but in some other place that is pointed to from the CPU context. The
on-demand FPU context switch will be a configuration option, and if it is
disabled, then current simple implementation is active. For simplicity I'd
like to still save FPU context outside of CPU contex even if the on-demand
option is disabled. Compared to the current implementation this approach adds
additional overhead of dereferencing pointer on every context save and
restore. I believe the overhead is actually small and could be ignored.
Any comments?
Thanks,
Sergei.