OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [score/] [cpu/] [arm/] [rtems/] [score/] [arm.h] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
2
 *  arm.h,v 1.4 2002/07/30 23:16:40 joel Exp
3
 *
4
 *
5
 *  COPYRIGHT (c) 2000 Canon Research Centre France SA.
6
 *  Emmanuel Raguet, mailto:raguet@crf.canon.fr
7
 *
8
 *  Copyright (c) 2002 Advent Networks, Inc.
9
 *       Jay Monkman <jmonkman@adventnetworks.com>
10
 *
11
 *  The license and distribution terms for this file may be
12
 *  found in the file LICENSE in this distribution or at
13
 *  http://www.OARcorp.com/rtems/license.html.
14
 *
15
 */
16
 
17
#ifndef _INCLUDE_ARM_h
18
#define _INCLUDE_ARM_h
19
 
20
#ifdef __cplusplus
21
extern "C" {
22
#endif
23
 
24
/*
25
 *  This file contains the information required to build
26
 *  RTEMS for a particular member of the "arm"
27
 *  family when executing in protected mode.  It does
28
 *  this by setting variables to indicate which implementation
29
 *  dependent features are present in a particular member
30
 *  of the family.
31
 */
32
#if defined(__ARM_ARCH_4__)
33
#  define CPU_MODEL_NAME  "ARMv4"
34
#  define ARM_HAS_CLZ     0
35
#  define ARM_HAS_THUMB   0
36
 
37
#elif defined(__ARM_ARCH_4T__)
38
#  define CPU_MODEL_NAME  "ARMv4T"
39
#  define ARM_HAS_CLZ     0
40
#  define ARM_HAS_THUMB   1
41
 
42
#elif defined(__ARM_ARCH_5__)
43
#  define CPU_MODEL_NAME  "ARMv5"
44
#  define ARM_HAS_CLZ     1
45
#  define ARM_HAS_THUMB   0
46
 
47
#elif defined(__ARM_ARCH_5T__)
48
#  define CPU_MODEL_NAME  "ARMv5T"
49
#  define ARM_HAS_CLZ     1
50
#  define ARM_HAS_THUMB   1
51
 
52
#elif defined(__ARM_ARCH_5E__)
53
#  define CPU_MODEL_NAME  "ARMv5E"
54
#  define ARM_HAS_CLZ     1
55
#  define ARM_HAS_THUMB   0
56
 
57
#elif defined(__ARM_ARCH_5TE__)
58
#  define CPU_MODEL_NAME  "ARMv5TE"
59
#  define ARM_HAS_CLZ     1
60
#  define ARM_HAS_THUMB   1
61
 
62
#else
63
#  error "Unsupported CPU Model"
64
 
65
#endif
66
 
67
/* All ARM CPUs are assumed to not have floating point units */
68
#define ARM_HAS_FPU     0
69
 
70
/*
71
 *  Define the name of the CPU family.
72
 */
73
 
74
#define CPU_NAME "ARM"
75
 
76
#ifdef __cplusplus
77
}
78
#endif
79
 
80
#endif /* ! _INCLUDE_ARM_h */
81
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.