1 |
578 |
markom |
/* This file is to be used to reconfigure the UDI Procedural interface
|
2 |
|
|
for a given target.
|
3 |
|
|
|
4 |
|
|
Copyright 1993 Free Software Foundation, Inc.
|
5 |
|
|
|
6 |
|
|
This file is part of GDB.
|
7 |
|
|
|
8 |
|
|
This program is free software; you can redistribute it and/or modify
|
9 |
|
|
it under the terms of the GNU General Public License as published by
|
10 |
|
|
the Free Software Foundation; either version 2 of the License, or
|
11 |
|
|
(at your option) any later version.
|
12 |
|
|
|
13 |
|
|
This program is distributed in the hope that it will be useful,
|
14 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16 |
|
|
GNU General Public License for more details.
|
17 |
|
|
|
18 |
|
|
You should have received a copy of the GNU General Public License
|
19 |
|
|
along with this program; if not, write to the Free Software
|
20 |
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
21 |
|
|
|
22 |
|
|
/* This file should be placed so that it will be
|
23 |
|
|
included from udiproc.h. Everything in here will probably need to
|
24 |
|
|
be changed when you change the target processor. Nothing in here
|
25 |
|
|
should need to change when you change hosts or compilers.
|
26 |
|
|
*/
|
27 |
|
|
|
28 |
|
|
/* Select a target CPU Family */
|
29 |
|
|
#define TargetCPUFamily Am29K
|
30 |
|
|
|
31 |
|
|
/* Enumerate the processor specific values for Space in a resource */
|
32 |
|
|
#define UDI29KDRAMSpace 0
|
33 |
|
|
#define UDI29KIOSpace 1
|
34 |
|
|
#define UDI29KCPSpace0 2
|
35 |
|
|
#define UDI29KCPSpace1 3
|
36 |
|
|
#define UDI29KIROMSpace 4
|
37 |
|
|
#define UDI29KIRAMSpace 5
|
38 |
|
|
#define UDI29KLocalRegs 8
|
39 |
|
|
#define UDI29KGlobalRegs 9
|
40 |
|
|
#define UDI29KRealRegs 10
|
41 |
|
|
#define UDI29KSpecialRegs 11
|
42 |
|
|
#define UDI29KTLBRegs 12 /* Not Am29005 */
|
43 |
|
|
#define UDI29KACCRegs 13 /* Am29050 only */
|
44 |
|
|
#define UDI29KICacheSpace 14 /* Am2903x only */
|
45 |
|
|
#define UDI29KAm29027Regs 15 /* When available */
|
46 |
|
|
#define UDI29KPC 16
|
47 |
|
|
#define UDI29KDCacheSpace 17 /* When available */
|
48 |
|
|
|
49 |
|
|
/* Enumerate the Co-processor registers */
|
50 |
|
|
#define UDI29KCP_F 0
|
51 |
|
|
#define UDI29KCP_Flag 8
|
52 |
|
|
#define UDI29KCP_I 12
|
53 |
|
|
#define UDI29KCP_ITmp 16
|
54 |
|
|
#define UDI29KCP_R 20
|
55 |
|
|
#define UDI29KCP_S 28
|
56 |
|
|
#define UDI29KCP_RTmp 36
|
57 |
|
|
#define UDI29KCP_STmp 44
|
58 |
|
|
#define UDI29KCP_Stat 52
|
59 |
|
|
#define UDI29KCP_Prec 56
|
60 |
|
|
#define UDI29KCP_Reg0 60
|
61 |
|
|
#define UDI29KCP_Reg1 68
|
62 |
|
|
#define UDI29KCP_Reg2 76
|
63 |
|
|
#define UDI29KCP_Reg3 84
|
64 |
|
|
#define UDI29KCP_Reg4 92
|
65 |
|
|
#define UDI29KCP_Reg5 100
|
66 |
|
|
#define UDI29KCP_Reg6 108
|
67 |
|
|
#define UDI29KCP_Reg7 116
|
68 |
|
|
#define UDI29KCP_Mode 124
|
69 |
|
|
|
70 |
|
|
/* Enumerate the stacks in StackSizes array */
|
71 |
|
|
#define UDI29KMemoryStack 0
|
72 |
|
|
#define UDI29KRegisterStack 1
|
73 |
|
|
|
74 |
|
|
/* Enumerate the chips for ChipVersions array */
|
75 |
|
|
#define UDI29K29KVersion 0
|
76 |
|
|
#define UDI29K29027Version 1
|
77 |
|
|
|
78 |
|
|
/* Define special value for elements of ChipVersions array for
|
79 |
|
|
* chips not present */
|
80 |
|
|
#define UDI29KChipNotPresent -1
|
81 |
|
|
|
82 |
|
|
typedef UDIInt32 UDICount;
|
83 |
|
|
typedef UDIUInt32 UDISize;
|
84 |
|
|
|
85 |
|
|
typedef UDIInt CPUSpace;
|
86 |
|
|
typedef UDIUInt32 CPUOffset;
|
87 |
|
|
typedef UDIUInt32 CPUSizeT;
|