diff options
author | Joel Sherrill <joel@rtems.org> | 2021-09-29 12:39:36 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-10-13 14:45:37 -0500 |
commit | edf8b49ee54935e94bbdee877e318e8b47c2fd57 (patch) | |
tree | 958d724459549aeb8f0e978f73fae745ac987353 /cpukit/score/cpu/microblaze/rtems/score/microblaze.h | |
parent | Add support for IDLE Thread stack allocator (diff) | |
download | rtems-edf8b49ee54935e94bbdee877e318e8b47c2fd57.tar.bz2 |
score: Add MicroBlaze port
Diffstat (limited to 'cpukit/score/cpu/microblaze/rtems/score/microblaze.h')
-rw-r--r-- | cpukit/score/cpu/microblaze/rtems/score/microblaze.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/cpukit/score/cpu/microblaze/rtems/score/microblaze.h b/cpukit/score/cpu/microblaze/rtems/score/microblaze.h new file mode 100644 index 0000000000..3878d411c4 --- /dev/null +++ b/cpukit/score/cpu/microblaze/rtems/score/microblaze.h @@ -0,0 +1,70 @@ +/* + * This file sets up basic CPU dependency settings based on + * compiler settings. For example, it can determine if + * floating point is available. This particular implementation + * is specified to the NO CPU port. + * + * COPYRIGHT (c) 1989-2011. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id: no_cpu.h,v 1.9 2009/12/02 09:48:25 ralf Exp $ + * + */ + +#ifndef _RTEMS_SCORE_NO_CPU_H +#define _RTEMS_SCORE_NO_CPU_H + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * This file contains the information required to build + * RTEMS for a particular member of the NO CPU family. + * It does this by setting variables to indicate which + * implementation dependent features are present in a particular + * member of the family. + * + * This is a good place to list all the known CPU models + * that this port supports and which RTEMS CPU model they correspond + * to. + */ + +#if defined(rtems_multilib) +/* + * Figure out all CPU Model Feature Flags based upon compiler + * predefines. + */ + +#define CPU_MODEL_NAME "rtems_multilib" +#define NOCPU_HAS_FPU 1 + +#else +/* if defined(__MICROBLAZE__) */ + +#define CPU_MODEL_NAME "MicroBlaze" +#define NOCPU_HAS_FPU 1 + +/* +#else + +#error "Unsupported CPU Model" +*/ + +#endif + +/* + * Define the name of the CPU family. + */ + +#define CPU_NAME "MicroBlaze CPU" + +#ifdef __cplusplus +} +#endif + +#endif /* _RTEMS_SCORE_NO_CPU_H */ |