GDB (API)
/home/stan/gdb/src/gdb/features/mips-dsp-linux.c
Go to the documentation of this file.
00001 /* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*- vi:set ro:
00002   Original: mips-dsp-linux.xml */
00003 
00004 #include "defs.h"
00005 #include "osabi.h"
00006 #include "target-descriptions.h"
00007 
00008 struct target_desc *tdesc_mips_dsp_linux;
00009 static void
00010 initialize_tdesc_mips_dsp_linux (void)
00011 {
00012   struct target_desc *result = allocate_target_description ();
00013   struct tdesc_feature *feature;
00014 
00015   set_tdesc_architecture (result, bfd_scan_arch ("mips"));
00016 
00017   set_tdesc_osabi (result, osabi_from_tdesc_string ("GNU/Linux"));
00018 
00019   feature = tdesc_create_feature (result, "org.gnu.gdb.mips.cpu");
00020   tdesc_create_reg (feature, "r0", 0, 1, NULL, 32, "int");
00021   tdesc_create_reg (feature, "r1", 1, 1, NULL, 32, "int");
00022   tdesc_create_reg (feature, "r2", 2, 1, NULL, 32, "int");
00023   tdesc_create_reg (feature, "r3", 3, 1, NULL, 32, "int");
00024   tdesc_create_reg (feature, "r4", 4, 1, NULL, 32, "int");
00025   tdesc_create_reg (feature, "r5", 5, 1, NULL, 32, "int");
00026   tdesc_create_reg (feature, "r6", 6, 1, NULL, 32, "int");
00027   tdesc_create_reg (feature, "r7", 7, 1, NULL, 32, "int");
00028   tdesc_create_reg (feature, "r8", 8, 1, NULL, 32, "int");
00029   tdesc_create_reg (feature, "r9", 9, 1, NULL, 32, "int");
00030   tdesc_create_reg (feature, "r10", 10, 1, NULL, 32, "int");
00031   tdesc_create_reg (feature, "r11", 11, 1, NULL, 32, "int");
00032   tdesc_create_reg (feature, "r12", 12, 1, NULL, 32, "int");
00033   tdesc_create_reg (feature, "r13", 13, 1, NULL, 32, "int");
00034   tdesc_create_reg (feature, "r14", 14, 1, NULL, 32, "int");
00035   tdesc_create_reg (feature, "r15", 15, 1, NULL, 32, "int");
00036   tdesc_create_reg (feature, "r16", 16, 1, NULL, 32, "int");
00037   tdesc_create_reg (feature, "r17", 17, 1, NULL, 32, "int");
00038   tdesc_create_reg (feature, "r18", 18, 1, NULL, 32, "int");
00039   tdesc_create_reg (feature, "r19", 19, 1, NULL, 32, "int");
00040   tdesc_create_reg (feature, "r20", 20, 1, NULL, 32, "int");
00041   tdesc_create_reg (feature, "r21", 21, 1, NULL, 32, "int");
00042   tdesc_create_reg (feature, "r22", 22, 1, NULL, 32, "int");
00043   tdesc_create_reg (feature, "r23", 23, 1, NULL, 32, "int");
00044   tdesc_create_reg (feature, "r24", 24, 1, NULL, 32, "int");
00045   tdesc_create_reg (feature, "r25", 25, 1, NULL, 32, "int");
00046   tdesc_create_reg (feature, "r26", 26, 1, NULL, 32, "int");
00047   tdesc_create_reg (feature, "r27", 27, 1, NULL, 32, "int");
00048   tdesc_create_reg (feature, "r28", 28, 1, NULL, 32, "int");
00049   tdesc_create_reg (feature, "r29", 29, 1, NULL, 32, "int");
00050   tdesc_create_reg (feature, "r30", 30, 1, NULL, 32, "int");
00051   tdesc_create_reg (feature, "r31", 31, 1, NULL, 32, "int");
00052   tdesc_create_reg (feature, "lo", 33, 1, NULL, 32, "int");
00053   tdesc_create_reg (feature, "hi", 34, 1, NULL, 32, "int");
00054   tdesc_create_reg (feature, "pc", 37, 1, NULL, 32, "int");
00055 
00056   feature = tdesc_create_feature (result, "org.gnu.gdb.mips.cp0");
00057   tdesc_create_reg (feature, "status", 32, 1, NULL, 32, "int");
00058   tdesc_create_reg (feature, "badvaddr", 35, 1, NULL, 32, "int");
00059   tdesc_create_reg (feature, "cause", 36, 1, NULL, 32, "int");
00060 
00061   feature = tdesc_create_feature (result, "org.gnu.gdb.mips.fpu");
00062   tdesc_create_reg (feature, "f0", 38, 1, NULL, 32, "ieee_single");
00063   tdesc_create_reg (feature, "f1", 39, 1, NULL, 32, "ieee_single");
00064   tdesc_create_reg (feature, "f2", 40, 1, NULL, 32, "ieee_single");
00065   tdesc_create_reg (feature, "f3", 41, 1, NULL, 32, "ieee_single");
00066   tdesc_create_reg (feature, "f4", 42, 1, NULL, 32, "ieee_single");
00067   tdesc_create_reg (feature, "f5", 43, 1, NULL, 32, "ieee_single");
00068   tdesc_create_reg (feature, "f6", 44, 1, NULL, 32, "ieee_single");
00069   tdesc_create_reg (feature, "f7", 45, 1, NULL, 32, "ieee_single");
00070   tdesc_create_reg (feature, "f8", 46, 1, NULL, 32, "ieee_single");
00071   tdesc_create_reg (feature, "f9", 47, 1, NULL, 32, "ieee_single");
00072   tdesc_create_reg (feature, "f10", 48, 1, NULL, 32, "ieee_single");
00073   tdesc_create_reg (feature, "f11", 49, 1, NULL, 32, "ieee_single");
00074   tdesc_create_reg (feature, "f12", 50, 1, NULL, 32, "ieee_single");
00075   tdesc_create_reg (feature, "f13", 51, 1, NULL, 32, "ieee_single");
00076   tdesc_create_reg (feature, "f14", 52, 1, NULL, 32, "ieee_single");
00077   tdesc_create_reg (feature, "f15", 53, 1, NULL, 32, "ieee_single");
00078   tdesc_create_reg (feature, "f16", 54, 1, NULL, 32, "ieee_single");
00079   tdesc_create_reg (feature, "f17", 55, 1, NULL, 32, "ieee_single");
00080   tdesc_create_reg (feature, "f18", 56, 1, NULL, 32, "ieee_single");
00081   tdesc_create_reg (feature, "f19", 57, 1, NULL, 32, "ieee_single");
00082   tdesc_create_reg (feature, "f20", 58, 1, NULL, 32, "ieee_single");
00083   tdesc_create_reg (feature, "f21", 59, 1, NULL, 32, "ieee_single");
00084   tdesc_create_reg (feature, "f22", 60, 1, NULL, 32, "ieee_single");
00085   tdesc_create_reg (feature, "f23", 61, 1, NULL, 32, "ieee_single");
00086   tdesc_create_reg (feature, "f24", 62, 1, NULL, 32, "ieee_single");
00087   tdesc_create_reg (feature, "f25", 63, 1, NULL, 32, "ieee_single");
00088   tdesc_create_reg (feature, "f26", 64, 1, NULL, 32, "ieee_single");
00089   tdesc_create_reg (feature, "f27", 65, 1, NULL, 32, "ieee_single");
00090   tdesc_create_reg (feature, "f28", 66, 1, NULL, 32, "ieee_single");
00091   tdesc_create_reg (feature, "f29", 67, 1, NULL, 32, "ieee_single");
00092   tdesc_create_reg (feature, "f30", 68, 1, NULL, 32, "ieee_single");
00093   tdesc_create_reg (feature, "f31", 69, 1, NULL, 32, "ieee_single");
00094   tdesc_create_reg (feature, "fcsr", 70, 1, "float", 32, "int");
00095   tdesc_create_reg (feature, "fir", 71, 1, "float", 32, "int");
00096 
00097   feature = tdesc_create_feature (result, "org.gnu.gdb.mips.dsp");
00098   tdesc_create_reg (feature, "hi1", 72, 1, NULL, 32, "int");
00099   tdesc_create_reg (feature, "lo1", 73, 1, NULL, 32, "int");
00100   tdesc_create_reg (feature, "hi2", 74, 1, NULL, 32, "int");
00101   tdesc_create_reg (feature, "lo2", 75, 1, NULL, 32, "int");
00102   tdesc_create_reg (feature, "hi3", 76, 1, NULL, 32, "int");
00103   tdesc_create_reg (feature, "lo3", 77, 1, NULL, 32, "int");
00104   tdesc_create_reg (feature, "dspctl", 78, 1, NULL, 32, "int");
00105 
00106   feature = tdesc_create_feature (result, "org.gnu.gdb.mips.linux");
00107   tdesc_create_reg (feature, "restart", 79, 1, "system", 32, "int");
00108 
00109   tdesc_mips_dsp_linux = result;
00110 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines