From 2e19bfde2f557a3e5fdfb176de48a668c34545af Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 23 Dec 2014 12:27:53 +0100 Subject: powerpc: Use PPC_HAS_FPU Provide floating point context support only if PPC_HAS_FPU == 1. --- cpukit/score/cpu/powerpc/rtems/score/cpu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpukit/score/cpu/powerpc/rtems/score/cpu.h') diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h index 29a2833ca7..26255a637c 100644 --- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h +++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h @@ -392,6 +392,7 @@ static inline ppc_context *ppc_get_context( const Context_Control *context ) #ifndef ASM typedef struct { +#if (PPC_HAS_FPU == 1) /* The ABIs (PowerOpen/SVR4/EABI) only require saving f14-f31 over * procedure calls. However, this would mean that the interrupt * frame had to hold f0-f13, and the fpscr. And as the majority @@ -405,6 +406,7 @@ typedef struct { float f[32]; uint32_t fpscr; #endif +#endif /* (PPC_HAS_FPU == 1) */ } Context_Control_fp; typedef struct CPU_Interrupt_frame { -- cgit v1.2.3