From 71f16a4499356b1f170f11307691aec227e28bba Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 19 Aug 1999 22:07:00 +0000 Subject: Support for MPC505 from Sergei Organov . His patch was against 3.6.0 so was painful to merge. It should be OK but there is no guarantee and there are no BSPs in the tree to exercise it. --- c/src/exec/score/cpu/powerpc/rtems/score/ppc.h | 17 +++++++++++++++++ c/src/exec/score/cpu/powerpc/shared/ppc.h | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) (limited to 'c/src/exec/score/cpu') diff --git a/c/src/exec/score/cpu/powerpc/rtems/score/ppc.h b/c/src/exec/score/cpu/powerpc/rtems/score/ppc.h index 27f8a4cfc1..68aaad18ce 100644 --- a/c/src/exec/score/cpu/powerpc/rtems/score/ppc.h +++ b/c/src/exec/score/cpu/powerpc/rtems/score/ppc.h @@ -116,7 +116,24 @@ extern "C" { #define PPC_HAS_EXCEPTION_PREFIX 0 #define PPC_HAS_EVPR 1 + +#elif defined(mpc505) || defined(mpc509) +/* + * Submitted by Sergei Organov as a patch against + * 3.6.0 long after 4.0 was released. This is just an attempt + * to get the setting correct. + */ + +#define CPU_MODEL_NAME "PowerPC 505/509" + +#define PPC_ALIGNMENT 4 +#define PPC_CACHE_ALIGNMENT 16 +#define PPC_I_CACHE 4096 +#define PPC_I_CACHE 0 + + #elif defined(ppc601) + /* * Submitted with original port -- book checked only. */ diff --git a/c/src/exec/score/cpu/powerpc/shared/ppc.h b/c/src/exec/score/cpu/powerpc/shared/ppc.h index 27f8a4cfc1..68aaad18ce 100644 --- a/c/src/exec/score/cpu/powerpc/shared/ppc.h +++ b/c/src/exec/score/cpu/powerpc/shared/ppc.h @@ -116,7 +116,24 @@ extern "C" { #define PPC_HAS_EXCEPTION_PREFIX 0 #define PPC_HAS_EVPR 1 + +#elif defined(mpc505) || defined(mpc509) +/* + * Submitted by Sergei Organov as a patch against + * 3.6.0 long after 4.0 was released. This is just an attempt + * to get the setting correct. + */ + +#define CPU_MODEL_NAME "PowerPC 505/509" + +#define PPC_ALIGNMENT 4 +#define PPC_CACHE_ALIGNMENT 16 +#define PPC_I_CACHE 4096 +#define PPC_I_CACHE 0 + + #elif defined(ppc601) + /* * Submitted with original port -- book checked only. */ -- cgit v1.2.3