Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / gdbserver / reg-mips.c
1 /* *INDENT-OFF* */ /* THIS FILE IS GENERATED */
2
3 /* A register protocol for GDB, the GNU debugger.
4    Copyright 2001, 2002 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,
21    Boston, MA 02111-1307, USA.  */
22
23 /* This file was created with the aid of ``regdat.sh'' and ``../insight-6.1/gdb/gdbserver/../regformats/reg-mips.dat''.  */
24
25 #include "regdef.h"
26 #include "regcache.h"
27
28 struct reg regs_mips[] = {
29   { "zero", 0, 32 },
30   { "at", 32, 32 },
31   { "v0", 64, 32 },
32   { "v1", 96, 32 },
33   { "a0", 128, 32 },
34   { "a1", 160, 32 },
35   { "a2", 192, 32 },
36   { "a3", 224, 32 },
37   { "t0", 256, 32 },
38   { "t1", 288, 32 },
39   { "t2", 320, 32 },
40   { "t3", 352, 32 },
41   { "t4", 384, 32 },
42   { "t5", 416, 32 },
43   { "t6", 448, 32 },
44   { "t7", 480, 32 },
45   { "s0", 512, 32 },
46   { "s1", 544, 32 },
47   { "s2", 576, 32 },
48   { "s3", 608, 32 },
49   { "s4", 640, 32 },
50   { "s5", 672, 32 },
51   { "s6", 704, 32 },
52   { "s7", 736, 32 },
53   { "t8", 768, 32 },
54   { "t9", 800, 32 },
55   { "k0", 832, 32 },
56   { "k1", 864, 32 },
57   { "gp", 896, 32 },
58   { "sp", 928, 32 },
59   { "s8", 960, 32 },
60   { "ra", 992, 32 },
61   { "sr", 1024, 32 },
62   { "lo", 1056, 32 },
63   { "hi", 1088, 32 },
64   { "bad", 1120, 32 },
65   { "cause", 1152, 32 },
66   { "pc", 1184, 32 },
67   { "f0", 1216, 32 },
68   { "f1", 1248, 32 },
69   { "f2", 1280, 32 },
70   { "f3", 1312, 32 },
71   { "f4", 1344, 32 },
72   { "f5", 1376, 32 },
73   { "f6", 1408, 32 },
74   { "f7", 1440, 32 },
75   { "f8", 1472, 32 },
76   { "f9", 1504, 32 },
77   { "f10", 1536, 32 },
78   { "f11", 1568, 32 },
79   { "f12", 1600, 32 },
80   { "f13", 1632, 32 },
81   { "f14", 1664, 32 },
82   { "f15", 1696, 32 },
83   { "f16", 1728, 32 },
84   { "f17", 1760, 32 },
85   { "f18", 1792, 32 },
86   { "f19", 1824, 32 },
87   { "f20", 1856, 32 },
88   { "f21", 1888, 32 },
89   { "f22", 1920, 32 },
90   { "f23", 1952, 32 },
91   { "f24", 1984, 32 },
92   { "f25", 2016, 32 },
93   { "f26", 2048, 32 },
94   { "f27", 2080, 32 },
95   { "f28", 2112, 32 },
96   { "f29", 2144, 32 },
97   { "f30", 2176, 32 },
98   { "f31", 2208, 32 },
99   { "fsr", 2240, 32 },
100   { "fir", 2272, 32 },
101   { "fp", 2304, 32 },
102   { "", 2336, 32 },
103   { "", 2368, 32 },
104   { "", 2400, 32 },
105   { "", 2432, 32 },
106   { "", 2464, 32 },
107   { "", 2496, 32 },
108   { "", 2528, 32 },
109   { "", 2560, 32 },
110   { "", 2592, 32 },
111   { "", 2624, 32 },
112   { "", 2656, 32 },
113   { "", 2688, 32 },
114   { "", 2720, 32 },
115   { "", 2752, 32 },
116   { "", 2784, 32 },
117   { "", 2816, 32 },
118   { "", 2848, 32 },
119 };
120
121 const char *expedite_regs_mips[] = { "pc", "sp", 0 };
122
123 void
124 init_registers ()
125 {
126     set_register_cache (regs_mips,
127                         sizeof (regs_mips) / sizeof (regs_mips[0]));
128     gdbserver_expedite_regs = expedite_regs_mips;
129 }