summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/cpu/powerpc/rtems/new-exceptions/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/score/cpu/powerpc/rtems/new-exceptions/cpu.h')
-rw-r--r--c/src/exec/score/cpu/powerpc/rtems/new-exceptions/cpu.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/c/src/exec/score/cpu/powerpc/rtems/new-exceptions/cpu.h b/c/src/exec/score/cpu/powerpc/rtems/new-exceptions/cpu.h
index 371626cd4b..6b30c0ed0b 100644
--- a/c/src/exec/score/cpu/powerpc/rtems/new-exceptions/cpu.h
+++ b/c/src/exec/score/cpu/powerpc/rtems/new-exceptions/cpu.h
@@ -228,12 +228,19 @@ extern "C" {
* until a context switch is made to another, different FP task.
* Thus in a system with only one FP task, the FP context will never
* be saved or restored.
+ *
+ * Note, however that compilers may use floating point registers/
+ * instructions for optimization or they may save/restore FP registers
+ * on the stack. You must not use deferred switching in these cases
+ * and on the PowerPC attempting to do so will raise a "FP unavailable"
+ * exception.
*/
/*
* ACB Note: This could make debugging tricky..
*/
-#define CPU_USE_DEFERRED_FP_SWITCH TRUE
+/* conservative setting (FALSE); probably doesn't affect performance too much */
+#define CPU_USE_DEFERRED_FP_SWITCH FALSE
/*
* Does this port provide a CPU dependent IDLE task implementation?