diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-02-05 16:59:36 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-02-06 15:35:54 +0100 |
commit | 302061471cbe17b0869cc9bd9de48372a4f16fa3 (patch) | |
tree | 2a564c1cdba699dcafe7fd63caf69ff2c15b6468 | |
parent | bsp/mpc55xx: Add mpc55xx_mmu_apply_config() (diff) | |
download | rtems-302061471cbe17b0869cc9bd9de48372a4f16fa3.tar.bz2 |
bsps/powerpc: Fix e200 check
-rw-r--r-- | c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h b/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h index 8087767a91..cb9607e70f 100644 --- a/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h +++ b/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h @@ -57,7 +57,7 @@ typedef enum PPC_e300c3 = 0x8085, /* e300c3 core */ PPC_e200z0 = 0x8170, PPC_e200z1 = 0x8140, - PPC_e200z4 = 0x8155, + PPC_e200z4 = 0x8150, PPC_e200z6 = 0x8110, PPC_e200z7 = 0x8160, PPC_PSIM = 0xfffe, /* GDB PowerPC simulator -- fake version */ @@ -121,9 +121,7 @@ static inline ppc_cpu_id_t ppc_cpu_current(void) static inline bool ppc_cpu_is_e200(void) { - return ppc_cpu_current() == PPC_e200z0 - || ppc_cpu_current() == PPC_e200z1 - || ppc_cpu_current() == PPC_e200z6; + return (ppc_cpu_current() & 0xff80) == 0x8100; } static inline bool ppc_cpu_is_e300(void) |