Changeset 3020614 in rtems


Ignore:
Timestamp:
Feb 5, 2013, 3:59:36 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
39de538
Parents:
93d4d06
git-author:
Sebastian Huber <sebastian.huber@…> (02/05/13 15:59:36)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/06/13 14:35:54)
Message:

bsps/powerpc: Fix e200 check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h

    r93d4d06 r3020614  
    5858  PPC_e200z0  = 0x8170,
    5959  PPC_e200z1  = 0x8140,
    60   PPC_e200z4  = 0x8155,
     60  PPC_e200z4  = 0x8150,
    6161  PPC_e200z6  = 0x8110,
    6262  PPC_e200z7  = 0x8160,
     
    122122static inline bool ppc_cpu_is_e200(void)
    123123{
    124         return ppc_cpu_current() == PPC_e200z0
    125                 || ppc_cpu_current() == PPC_e200z1
    126                 || ppc_cpu_current() == PPC_e200z6;
     124        return (ppc_cpu_current() & 0xff80) == 0x8100;
    127125}
    128126
Note: See TracChangeset for help on using the changeset viewer.