/* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*- vi:set ro:
  Original: sparc32-solaris.xml */

#include "osabi.h"
#include "target-descriptions.h"

const_target_desc_up tdesc_sparc32_solaris;
static void
initialize_tdesc_sparc32_solaris (void)
{
  target_desc_up result = allocate_target_description ();
  set_tdesc_architecture (result.get (), bfd_scan_arch ("sparc"));

  set_tdesc_osabi (result.get (), GDB_OSABI_SOLARIS);

  struct tdesc_feature *feature;

  feature = tdesc_create_feature (result.get (), "org.gnu.gdb.sparc.cpu");
  tdesc_create_reg (feature, "g0", 0, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "g1", 1, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "g2", 2, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "g3", 3, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "g4", 4, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "g5", 5, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "g6", 6, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "g7", 7, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "o0", 8, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "o1", 9, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "o2", 10, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "o3", 11, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "o4", 12, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "o5", 13, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "sp", 14, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "o7", 15, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "l0", 16, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "l1", 17, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "l2", 18, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "l3", 19, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "l4", 20, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "l5", 21, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "l6", 22, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "l7", 23, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "i0", 24, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "i1", 25, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "i2", 26, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "i3", 27, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "i4", 28, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "i5", 29, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "fp", 30, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "i7", 31, 1, NULL, 32, "uint32");

  feature = tdesc_create_feature (result.get (), "org.gnu.gdb.sparc.cp0");
  tdesc_create_reg (feature, "y", 64, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "psr", 65, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "wim", 66, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "tbr", 67, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "pc", 68, 1, NULL, 32, "code_ptr");
  tdesc_create_reg (feature, "npc", 69, 1, NULL, 32, "code_ptr");
  tdesc_create_reg (feature, "fsr", 70, 1, NULL, 32, "uint32");
  tdesc_create_reg (feature, "csr", 71, 1, NULL, 32, "uint32");

  feature = tdesc_create_feature (result.get (), "org.gnu.gdb.sparc.fpu");
  tdesc_create_reg (feature, "f0", 32, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f1", 33, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f2", 34, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f3", 35, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f4", 36, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f5", 37, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f6", 38, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f7", 39, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f8", 40, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f9", 41, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f10", 42, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f11", 43, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f12", 44, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f13", 45, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f14", 46, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f15", 47, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f16", 48, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f17", 49, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f18", 50, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f19", 51, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f20", 52, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f21", 53, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f22", 54, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f23", 55, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f24", 56, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f25", 57, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f26", 58, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f27", 59, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f28", 60, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f29", 61, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f30", 62, 1, NULL, 32, "ieee_single");
  tdesc_create_reg (feature, "f31", 63, 1, NULL, 32, "ieee_single");

  tdesc_sparc32_solaris = std::move (result);
}
