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 ``../../../../contrib/gdb/gdb/regformats/reg-ppc.dat''.  */
24
25#include <sys/cdefs.h>
26__FBSDID("$FreeBSD$");
27
28#include "regdef.h"
29#include "regcache.h"
30
31struct reg regs_ppc[] = {
32  { "r0", 0, 32 },
33  { "r1", 32, 32 },
34  { "r2", 64, 32 },
35  { "r3", 96, 32 },
36  { "r4", 128, 32 },
37  { "r5", 160, 32 },
38  { "r6", 192, 32 },
39  { "r7", 224, 32 },
40  { "r8", 256, 32 },
41  { "r9", 288, 32 },
42  { "r10", 320, 32 },
43  { "r11", 352, 32 },
44  { "r12", 384, 32 },
45  { "r13", 416, 32 },
46  { "r14", 448, 32 },
47  { "r15", 480, 32 },
48  { "r16", 512, 32 },
49  { "r17", 544, 32 },
50  { "r18", 576, 32 },
51  { "r19", 608, 32 },
52  { "r20", 640, 32 },
53  { "r21", 672, 32 },
54  { "r22", 704, 32 },
55  { "r23", 736, 32 },
56  { "r24", 768, 32 },
57  { "r25", 800, 32 },
58  { "r26", 832, 32 },
59  { "r27", 864, 32 },
60  { "r28", 896, 32 },
61  { "r29", 928, 32 },
62  { "r30", 960, 32 },
63  { "r31", 992, 32 },
64  { "f0", 1024, 64 },
65  { "f1", 1088, 64 },
66  { "f2", 1152, 64 },
67  { "f3", 1216, 64 },
68  { "f4", 1280, 64 },
69  { "f5", 1344, 64 },
70  { "f6", 1408, 64 },
71  { "f7", 1472, 64 },
72  { "f8", 1536, 64 },
73  { "f9", 1600, 64 },
74  { "f10", 1664, 64 },
75  { "f11", 1728, 64 },
76  { "f12", 1792, 64 },
77  { "f13", 1856, 64 },
78  { "f14", 1920, 64 },
79  { "f15", 1984, 64 },
80  { "f16", 2048, 64 },
81  { "f17", 2112, 64 },
82  { "f18", 2176, 64 },
83  { "f19", 2240, 64 },
84  { "f20", 2304, 64 },
85  { "f21", 2368, 64 },
86  { "f22", 2432, 64 },
87  { "f23", 2496, 64 },
88  { "f24", 2560, 64 },
89  { "f25", 2624, 64 },
90  { "f26", 2688, 64 },
91  { "f27", 2752, 64 },
92  { "f28", 2816, 64 },
93  { "f29", 2880, 64 },
94  { "f30", 2944, 64 },
95  { "f31", 3008, 64 },
96  { "pc", 3072, 32 },
97  { "ps", 3104, 32 },
98  { "cr", 3136, 32 },
99  { "lr", 3168, 32 },
100  { "ctr", 3200, 32 },
101  { "xer", 3232, 32 },
102  { "fpscr", 3264, 32 },
103};
104
105const char *expedite_regs_ppc[] = { "r1", "pc", 0 };
106
107void
108init_registers ()
109{
110    set_register_cache (regs_ppc,
111			sizeof (regs_ppc) / sizeof (regs_ppc[0]));
112    gdbserver_expedite_regs = expedite_regs_ppc;
113}
114