Changeset 52ebfcb in rtems


Ignore:
Timestamp:
Feb 10, 2005, 5:29:02 AM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
6dfbd8c
Parents:
06ef44f5
Message:

2005-02-10 Ralf Corsepius <ralf.corsepius@…>

  • rtems/score/powerpc.h: Remove hard-coded PPC_HAS_FPU. Tie PPC_HAS_FPU to _SOFT_FLOAT.
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h

    r06ef44f5 r52ebfcb  
    111111#define PPC_CACHE_ALIGNMENT     16
    112112#define PPC_HAS_RFCI            1
    113 #define PPC_HAS_FPU             0
    114113#define PPC_USE_MULTIPLE        1
    115114#define PPC_I_CACHE             2048
     
    223222#define PPC_CACHE_ALIGNMENT     16
    224223#define PPC_INTERRUPT_MAX       71
    225 #define PPC_HAS_FPU             0
    226 #define PPC_HAS_DOUBLE          0
    227224#define PPC_USE_MULTIPLE        1
    228225
     
    243240#define PPC_CACHE_ALIGNMENT     16
    244241#define PPC_INTERRUPT_MAX       71
    245 #define PPC_HAS_FPU             0
    246 #define PPC_HAS_DOUBLE          0
    247242
    248243#define PPC_MSR_0               0x00009000
     
    290285#define PPC_CACHE_ALIGNMENT     32
    291286#define PPC_INTERRUPT_MAX       125
    292 /*#define PPC_HAS_FPU           0 */    /* my 8260 is one the few with no FPU */
    293 #define PPC_HAS_FPU             1       /* the rest do have one */
    294 #define PPC_HAS_DOUBLE          1
    295287#define PPC_USE_MULTIPLE        1
    296288#else
     
    418410
    419411/*
    420  *  Unless specified above, then assume the model has FP support.
     412 *  Unless specified above, assume PPC_HAS_FPU to be a synonym for _SOFT_FLOAT.
     413 *  FIXME: Should we tie PPC_HAS_FPU to _SOFT_FLOAT, directly
     414 *     and disallow explicitly setting PPC_HAS_FPU?
    421415 */
    422416
    423417#ifndef PPC_HAS_FPU
     418#ifdef _SOFT_FLOAT
     419#define PPC_HAS_FPU 0
     420#else
    424421#define PPC_HAS_FPU 1
     422#endif
    425423#endif
    426424
  • cpukit/score/cpu/powerpc/ChangeLog

    r06ef44f5 r52ebfcb  
     12005-02-10      Ralf Corsepius <ralf.corsepius@rtems.org>
     2
     3        * rtems/score/powerpc.h: Remove hard-coded PPC_HAS_FPU.
     4        Tie PPC_HAS_FPU to _SOFT_FLOAT.
     5
    162005-02-09      Ralf Corsepius <ralf.corsepius@rtems.org>
    27
  • cpukit/score/cpu/powerpc/rtems/score/powerpc.h

    r06ef44f5 r52ebfcb  
    111111#define PPC_CACHE_ALIGNMENT     16
    112112#define PPC_HAS_RFCI            1
    113 #define PPC_HAS_FPU             0
    114113#define PPC_USE_MULTIPLE        1
    115114#define PPC_I_CACHE             2048
     
    223222#define PPC_CACHE_ALIGNMENT     16
    224223#define PPC_INTERRUPT_MAX       71
    225 #define PPC_HAS_FPU             0
    226 #define PPC_HAS_DOUBLE          0
    227224#define PPC_USE_MULTIPLE        1
    228225
     
    243240#define PPC_CACHE_ALIGNMENT     16
    244241#define PPC_INTERRUPT_MAX       71
    245 #define PPC_HAS_FPU             0
    246 #define PPC_HAS_DOUBLE          0
    247242
    248243#define PPC_MSR_0               0x00009000
     
    290285#define PPC_CACHE_ALIGNMENT     32
    291286#define PPC_INTERRUPT_MAX       125
    292 /*#define PPC_HAS_FPU           0 */    /* my 8260 is one the few with no FPU */
    293 #define PPC_HAS_FPU             1       /* the rest do have one */
    294 #define PPC_HAS_DOUBLE          1
    295287#define PPC_USE_MULTIPLE        1
    296288#else
     
    418410
    419411/*
    420  *  Unless specified above, then assume the model has FP support.
     412 *  Unless specified above, assume PPC_HAS_FPU to be a synonym for _SOFT_FLOAT.
     413 *  FIXME: Should we tie PPC_HAS_FPU to _SOFT_FLOAT, directly
     414 *     and disallow explicitly setting PPC_HAS_FPU?
    421415 */
    422416
    423417#ifndef PPC_HAS_FPU
     418#ifdef _SOFT_FLOAT
     419#define PPC_HAS_FPU 0
     420#else
    424421#define PPC_HAS_FPU 1
     422#endif
    425423#endif
    426424
Note: See TracChangeset for help on using the changeset viewer.