1188941Sraj/* *INDENT-OFF* */ /* THIS FILE IS GENERATED */ 2188941Sraj 3188941Sraj/* A register protocol for GDB, the GNU debugger. 4188941Sraj Copyright 2001, 2002 Free Software Foundation, Inc. 5188941Sraj 6188941Sraj This file is part of GDB. 7188941Sraj 8188941Sraj This program is free software; you can redistribute it and/or modify 9188941Sraj it under the terms of the GNU General Public License as published by 10188941Sraj the Free Software Foundation; either version 2 of the License, or 11188941Sraj (at your option) any later version. 12188941Sraj 13188941Sraj This program is distributed in the hope that it will be useful, 14188941Sraj but WITHOUT ANY WARRANTY; without even the implied warranty of 15188941Sraj MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16188941Sraj GNU General Public License for more details. 17188941Sraj 18188941Sraj You should have received a copy of the GNU General Public License 19188941Sraj along with this program; if not, write to the Free Software 20188941Sraj Foundation, Inc., 59 Temple Place - Suite 330, 21188941Sraj Boston, MA 02111-1307, USA. */ 22188941Sraj 23188941Sraj/* This file was created with the aid of ``regdat.sh'' and ``../../../../contrib/gdb/gdb/regformats/reg-ppc.dat''. */ 24188941Sraj 25188941Sraj#include <sys/cdefs.h> 26188941Sraj__FBSDID("$FreeBSD: releng/10.3/gnu/usr.bin/gdb/gdbserver/reg-powerpc.c 206624 2010-04-14 20:31:06Z imp $"); 27188941Sraj 28188941Sraj#include "regdef.h" 29188941Sraj#include "regcache.h" 30188941Sraj 31188941Srajstruct reg regs_ppc[] = { 32188941Sraj { "r0", 0, 32 }, 33188941Sraj { "r1", 32, 32 }, 34188941Sraj { "r2", 64, 32 }, 35188941Sraj { "r3", 96, 32 }, 36188941Sraj { "r4", 128, 32 }, 37188941Sraj { "r5", 160, 32 }, 38188941Sraj { "r6", 192, 32 }, 39188941Sraj { "r7", 224, 32 }, 40188941Sraj { "r8", 256, 32 }, 41188941Sraj { "r9", 288, 32 }, 42188941Sraj { "r10", 320, 32 }, 43188941Sraj { "r11", 352, 32 }, 44188941Sraj { "r12", 384, 32 }, 45188941Sraj { "r13", 416, 32 }, 46188941Sraj { "r14", 448, 32 }, 47188941Sraj { "r15", 480, 32 }, 48188941Sraj { "r16", 512, 32 }, 49188941Sraj { "r17", 544, 32 }, 50188941Sraj { "r18", 576, 32 }, 51188941Sraj { "r19", 608, 32 }, 52188941Sraj { "r20", 640, 32 }, 53188941Sraj { "r21", 672, 32 }, 54188941Sraj { "r22", 704, 32 }, 55188941Sraj { "r23", 736, 32 }, 56188941Sraj { "r24", 768, 32 }, 57188941Sraj { "r25", 800, 32 }, 58188941Sraj { "r26", 832, 32 }, 59188941Sraj { "r27", 864, 32 }, 60188941Sraj { "r28", 896, 32 }, 61188941Sraj { "r29", 928, 32 }, 62188941Sraj { "r30", 960, 32 }, 63188941Sraj { "r31", 992, 32 }, 64188941Sraj { "f0", 1024, 64 }, 65188941Sraj { "f1", 1088, 64 }, 66188941Sraj { "f2", 1152, 64 }, 67188941Sraj { "f3", 1216, 64 }, 68188941Sraj { "f4", 1280, 64 }, 69188941Sraj { "f5", 1344, 64 }, 70188941Sraj { "f6", 1408, 64 }, 71188941Sraj { "f7", 1472, 64 }, 72188941Sraj { "f8", 1536, 64 }, 73188941Sraj { "f9", 1600, 64 }, 74188941Sraj { "f10", 1664, 64 }, 75188941Sraj { "f11", 1728, 64 }, 76188941Sraj { "f12", 1792, 64 }, 77188941Sraj { "f13", 1856, 64 }, 78188941Sraj { "f14", 1920, 64 }, 79188941Sraj { "f15", 1984, 64 }, 80188941Sraj { "f16", 2048, 64 }, 81188941Sraj { "f17", 2112, 64 }, 82188941Sraj { "f18", 2176, 64 }, 83188941Sraj { "f19", 2240, 64 }, 84188941Sraj { "f20", 2304, 64 }, 85188941Sraj { "f21", 2368, 64 }, 86188941Sraj { "f22", 2432, 64 }, 87188941Sraj { "f23", 2496, 64 }, 88188941Sraj { "f24", 2560, 64 }, 89188941Sraj { "f25", 2624, 64 }, 90188941Sraj { "f26", 2688, 64 }, 91188941Sraj { "f27", 2752, 64 }, 92188941Sraj { "f28", 2816, 64 }, 93188941Sraj { "f29", 2880, 64 }, 94188941Sraj { "f30", 2944, 64 }, 95188941Sraj { "f31", 3008, 64 }, 96188941Sraj { "pc", 3072, 32 }, 97188941Sraj { "ps", 3104, 32 }, 98188941Sraj { "cr", 3136, 32 }, 99188941Sraj { "lr", 3168, 32 }, 100188941Sraj { "ctr", 3200, 32 }, 101188941Sraj { "xer", 3232, 32 }, 102188941Sraj { "fpscr", 3264, 32 }, 103188941Sraj}; 104188941Sraj 105188941Srajconst char *expedite_regs_ppc[] = { "r1", "pc", 0 }; 106188941Sraj 107188941Srajvoid 108188941Srajinit_registers () 109188941Sraj{ 110188941Sraj set_register_cache (regs_ppc, 111188941Sraj sizeof (regs_ppc) / sizeof (regs_ppc[0])); 112188941Sraj gdbserver_expedite_regs = expedite_regs_ppc; 113188941Sraj} 114