Changeset 61c9801 in rtems


Ignore:
Timestamp:
Nov 14, 2007, 5:19:59 AM (12 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, 4.9, master
Children:
fe1632a
Parents:
6ae32a26
Message:

2007-11-13 Till Straumann <strauman@…>

  • rtems/score/powerpc.h: Added a 'ppc_generic' CPU variant. The goal would be making cpukit and hopefully libcpu work for all (or at least most) CPUs/BSPs with -Dppc_generic so that eventually all tests defined(<cpu_flavor>) for CPU flavors can be eliminated.
Location:
cpukit/score/cpu/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/powerpc/ChangeLog

    r6ae32a26 r61c9801  
     12007-11-13      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * rtems/score/powerpc.h: Added a '__ppc_generic' CPU variant.
     4        The goal would be making cpukit and hopefully libcpu work
     5        for all (or at least most) CPUs/BSPs with -D__ppc_generic so
     6        that eventually all tests [#if defined(<cpu_flavor>)] for CPU
     7        flavors can be eliminated.
     8
    192007-11-13      Till Straumann <strauman@slac.stanford.edu>
    210
  • cpukit/score/cpu/powerpc/rtems/score/powerpc.h

    r6ae32a26 r61c9801  
    219219#define PPC_CACHE_ALIGNMENT     32
    220220#define PPC_INTERRUPT_MAX       125
     221#elif defined(__ppc_generic)
     222
     223/* Generic ppc */
     224
     225#ifdef _SOFT_FLOAT
     226#define CPU_MODEL_NAME "PowerPC Generic (no FPU)"
     227#elif defined(__NO_FPRS__)
     228#define CPU_MODEL_NAME "PowerPC Generic (E500/float-gprs)"
    221229#else
    222  
     230#define CPU_MODEL_NAME "PowerPC Generic"
     231#endif
     232
     233#define PPC_ALIGNMENT           8
     234
     235#else
     236
    223237#error "Unsupported CPU Model"
    224  
     238
    225239#endif
    226240
     
    301315
    302316#ifndef PPC_HAS_FPU
    303 #ifdef _SOFT_FLOAT
     317#if defined(_SOFT_FLOAT) || defined(__NO_FPRS__) /* e500 has unified integer/FP registers */
    304318#define PPC_HAS_FPU 0
    305319#else
Note: See TracChangeset for help on using the changeset viewer.