Commit b7a100da9c90f987d1279fba403bbc856f369196
1 parent
b109f9f8
removed extern inline (Paul Brook)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1340 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
4 deletions
target-arm/nwfpe/fpa11.inl
| @@ -22,13 +22,13 @@ | @@ -22,13 +22,13 @@ | ||
| 22 | #include "fpa11.h" | 22 | #include "fpa11.h" |
| 23 | 23 | ||
| 24 | /* Read and write floating point status register */ | 24 | /* Read and write floating point status register */ |
| 25 | -extern __inline__ unsigned int readFPSR(void) | 25 | +static inline unsigned int readFPSR(void) |
| 26 | { | 26 | { |
| 27 | FPA11 *fpa11 = GET_FPA11(); | 27 | FPA11 *fpa11 = GET_FPA11(); |
| 28 | return(fpa11->fpsr); | 28 | return(fpa11->fpsr); |
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | -extern __inline__ void writeFPSR(FPSR reg) | 31 | +static inline void writeFPSR(FPSR reg) |
| 32 | { | 32 | { |
| 33 | FPA11 *fpa11 = GET_FPA11(); | 33 | FPA11 *fpa11 = GET_FPA11(); |
| 34 | /* the sysid byte in the status register is readonly */ | 34 | /* the sysid byte in the status register is readonly */ |
| @@ -36,14 +36,14 @@ extern __inline__ void writeFPSR(FPSR reg) | @@ -36,14 +36,14 @@ extern __inline__ void writeFPSR(FPSR reg) | ||
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | /* Read and write floating point control register */ | 38 | /* Read and write floating point control register */ |
| 39 | -extern __inline__ FPCR readFPCR(void) | 39 | +static inline FPCR readFPCR(void) |
| 40 | { | 40 | { |
| 41 | FPA11 *fpa11 = GET_FPA11(); | 41 | FPA11 *fpa11 = GET_FPA11(); |
| 42 | /* clear SB, AB and DA bits before returning FPCR */ | 42 | /* clear SB, AB and DA bits before returning FPCR */ |
| 43 | return(fpa11->fpcr & ~MASK_RFC); | 43 | return(fpa11->fpcr & ~MASK_RFC); |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | -extern __inline__ void writeFPCR(FPCR reg) | 46 | +static inline void writeFPCR(FPCR reg) |
| 47 | { | 47 | { |
| 48 | FPA11 *fpa11 = GET_FPA11(); | 48 | FPA11 *fpa11 = GET_FPA11(); |
| 49 | fpa11->fpcr &= ~MASK_WFC; /* clear SB, AB and DA bits */ | 49 | fpa11->fpcr &= ~MASK_WFC; /* clear SB, AB and DA bits */ |