PPC Context_Control layout with __SPE__ defined
strauman at slac.stanford.edu
Mon Aug 8 15:00:29 CDT 2011
Is there any good reason for the layout of the Context_Control struct
being radically different (from a C- point of view)
if __SPE__ is enabled?
IMHO it would be preferable to adhere to the existing scheme so that
e.g., unbundled diagnostics and tools which access register contents
in a task context don't break.
instead of (score/cpu/powerpc/rtems/score/cpu.h)
uint32_t context [ ];
I would suggest
Another possibility would be removing the non-essential
registers (r2, r13, pc) from the non-SPE context, too
and use an identical layout for SPE and non-SPE.
More information about the rtems-users