1 | /** |
---|
2 | * @file rtems/score/or32.h |
---|
3 | */ |
---|
4 | |
---|
5 | /* |
---|
6 | * This include file contains Or1k definitions pertaining to the Opencores |
---|
7 | * or1k processor family. |
---|
8 | * |
---|
9 | * COPYRIGHT (c) 1989-1999. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.com/license/LICENSE. |
---|
15 | * |
---|
16 | * This file adapted from no_cpu example of the RTEMS distribution. |
---|
17 | * The body has been modified for the Opencores Or1k implementation by |
---|
18 | * Chris Ziomkowski. <chris@asics.ws> |
---|
19 | * |
---|
20 | */ |
---|
21 | |
---|
22 | #ifndef _OR1K_H |
---|
23 | #define _OR1K_H |
---|
24 | |
---|
25 | #ifdef __cplusplus |
---|
26 | extern "C" { |
---|
27 | #endif |
---|
28 | |
---|
29 | /* |
---|
30 | * This file contains the information required to build |
---|
31 | * RTEMS for a particular member of the or1k CPU family. |
---|
32 | * It does this by setting variables to indicate which |
---|
33 | * implementation dependent features are present in a particular |
---|
34 | * member of the family. |
---|
35 | * |
---|
36 | * This is a good place to list all the known CPU models |
---|
37 | * that this port supports and which RTEMS CPU model they correspond |
---|
38 | * to. |
---|
39 | */ |
---|
40 | |
---|
41 | #if defined(rtems_multilib) |
---|
42 | /* |
---|
43 | * Figure out all CPU Model Feature Flags based upon compiler |
---|
44 | * predefines. |
---|
45 | */ |
---|
46 | |
---|
47 | #define CPU_MODEL_NAME "rtems_multilib" |
---|
48 | #define OR1K_HAS_FPU 1 |
---|
49 | |
---|
50 | #elif defined(or1200) |
---|
51 | |
---|
52 | #define CPU_MODEL_NAME "OR1200" |
---|
53 | #define OR1K_HAS_FPU 0 |
---|
54 | |
---|
55 | #else |
---|
56 | |
---|
57 | #define CPU_MODEL_NAME "Generic Or1k Compatible" |
---|
58 | #define OR1K_HAS_FPU 0 |
---|
59 | |
---|
60 | #endif |
---|
61 | |
---|
62 | /* |
---|
63 | * Define the name of the CPU family. |
---|
64 | */ |
---|
65 | |
---|
66 | #define CPU_NAME "OpenRisc 1000" |
---|
67 | |
---|
68 | #ifdef __cplusplus |
---|
69 | } |
---|
70 | #endif |
---|
71 | |
---|
72 | #endif /* ! _INCLUDE_NO_CPU_h */ |
---|
73 | /* end of include file */ |
---|