diff options
author | Yao Qi <yao@codesourcery.com> | 2011-08-14 12:50:14 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2011-08-14 12:50:14 +0000 |
commit | d3e3fa9393077d57b41b07f96be95e1035dcda48 (patch) | |
tree | 155c3e1219df38b87119ea798d7d8e05fabb7647 /gdb/features | |
parent | 224bbe4936351478a98079135e84f1d7fff224ec (diff) | |
download | gdb-d3e3fa9393077d57b41b07f96be95e1035dcda48.zip gdb-d3e3fa9393077d57b41b07f96be95e1035dcda48.tar.gz gdb-d3e3fa9393077d57b41b07f96be95e1035dcda48.tar.bz2 |
Add files missed in previous commit.
Diffstat (limited to 'gdb/features')
-rw-r--r-- | gdb/features/tic6x-c62x-linux.c | 56 | ||||
-rw-r--r-- | gdb/features/tic6x-c62x-linux.xml | 13 | ||||
-rw-r--r-- | gdb/features/tic6x-c62x.c | 54 | ||||
-rw-r--r-- | gdb/features/tic6x-c62x.xml | 12 | ||||
-rw-r--r-- | gdb/features/tic6x-c64x-linux.c | 90 | ||||
-rw-r--r-- | gdb/features/tic6x-c64x-linux.xml | 14 | ||||
-rw-r--r-- | gdb/features/tic6x-c64x.c | 88 | ||||
-rw-r--r-- | gdb/features/tic6x-c64x.xml | 13 | ||||
-rw-r--r-- | gdb/features/tic6x-c64xp-linux.c | 95 | ||||
-rw-r--r-- | gdb/features/tic6x-c64xp-linux.xml | 15 | ||||
-rw-r--r-- | gdb/features/tic6x-c64xp.c | 93 | ||||
-rw-r--r-- | gdb/features/tic6x-c64xp.xml | 14 | ||||
-rw-r--r-- | gdb/features/tic6x-c6xp.xml | 13 | ||||
-rw-r--r-- | gdb/features/tic6x-core.xml | 44 | ||||
-rw-r--r-- | gdb/features/tic6x-gp.xml | 42 |
15 files changed, 656 insertions, 0 deletions
diff --git a/gdb/features/tic6x-c62x-linux.c b/gdb/features/tic6x-c62x-linux.c new file mode 100644 index 0000000..df82fc2 --- /dev/null +++ b/gdb/features/tic6x-c62x-linux.c @@ -0,0 +1,56 @@ +/* THIS FILE IS GENERATED. Original: tic6x-c62x-linux.xml */ + +#include "defs.h" +#include "osabi.h" +#include "target-descriptions.h" + +struct target_desc *tdesc_tic6x_c62x_linux; +static void +initialize_tdesc_tic6x_c62x_linux (void) +{ + struct target_desc *result = allocate_target_description (); + struct tdesc_feature *feature; + struct tdesc_type *field_type, *type; + + set_tdesc_architecture (result, bfd_scan_arch ("tic6x")); + + set_tdesc_osabi (result, osabi_from_tdesc_string ("GNU/Linux")); + + feature = tdesc_create_feature (result, "org.gnu.gdb.tic6x.core"); + tdesc_create_reg (feature, "A0", 0, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A1", 1, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A2", 2, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A3", 3, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A4", 4, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A5", 5, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A6", 6, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A7", 7, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A8", 8, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A9", 9, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A10", 10, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A11", 11, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A12", 12, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A13", 13, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A14", 14, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A15", 15, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B0", 16, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B1", 17, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B2", 18, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B3", 19, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B4", 20, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B5", 21, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B6", 22, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B7", 23, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B8", 24, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B9", 25, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B10", 26, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B11", 27, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B12", 28, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B13", 29, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B14", 30, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B15", 31, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "CSR", 32, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "PC", 33, 1, NULL, 32, "code_ptr"); + + tdesc_tic6x_c62x_linux = result; +} diff --git a/gdb/features/tic6x-c62x-linux.xml b/gdb/features/tic6x-c62x-linux.xml new file mode 100644 index 0000000..0319438 --- /dev/null +++ b/gdb/features/tic6x-c62x-linux.xml @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<!-- Copyright (C) 2010, 2011 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. --> + +<!DOCTYPE target SYSTEM "gdb-target.dtd"> +<target> + <architecture>tic6x</architecture> + <osabi>GNU/Linux</osabi> + <xi:include href="tic6x-core.xml"/> +</target> diff --git a/gdb/features/tic6x-c62x.c b/gdb/features/tic6x-c62x.c new file mode 100644 index 0000000..6e3a9c8 --- /dev/null +++ b/gdb/features/tic6x-c62x.c @@ -0,0 +1,54 @@ +/* THIS FILE IS GENERATED. Original: tic6x-c62x.xml */ + +#include "defs.h" +#include "osabi.h" +#include "target-descriptions.h" + +struct target_desc *tdesc_tic6x_c62x; +static void +initialize_tdesc_tic6x_c62x (void) +{ + struct target_desc *result = allocate_target_description (); + struct tdesc_feature *feature; + struct tdesc_type *field_type, *type; + + set_tdesc_architecture (result, bfd_scan_arch ("tic6x")); + + feature = tdesc_create_feature (result, "org.gnu.gdb.tic6x.core"); + tdesc_create_reg (feature, "A0", 0, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A1", 1, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A2", 2, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A3", 3, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A4", 4, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A5", 5, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A6", 6, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A7", 7, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A8", 8, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A9", 9, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A10", 10, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A11", 11, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A12", 12, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A13", 13, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A14", 14, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A15", 15, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B0", 16, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B1", 17, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B2", 18, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B3", 19, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B4", 20, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B5", 21, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B6", 22, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B7", 23, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B8", 24, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B9", 25, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B10", 26, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B11", 27, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B12", 28, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B13", 29, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B14", 30, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B15", 31, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "CSR", 32, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "PC", 33, 1, NULL, 32, "code_ptr"); + + tdesc_tic6x_c62x = result; +} diff --git a/gdb/features/tic6x-c62x.xml b/gdb/features/tic6x-c62x.xml new file mode 100644 index 0000000..e425b5e --- /dev/null +++ b/gdb/features/tic6x-c62x.xml @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<!-- Copyright (C) 2010, 2011 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. --> + +<!DOCTYPE target SYSTEM "gdb-target.dtd"> +<target> + <architecture>tic6x</architecture> + <xi:include href="tic6x-core.xml"/> +</target> diff --git a/gdb/features/tic6x-c64x-linux.c b/gdb/features/tic6x-c64x-linux.c new file mode 100644 index 0000000..39f9e95 --- /dev/null +++ b/gdb/features/tic6x-c64x-linux.c @@ -0,0 +1,90 @@ +/* THIS FILE IS GENERATED. Original: tic6x-c64x-linux.xml */ + +#include "defs.h" +#include "osabi.h" +#include "target-descriptions.h" + +struct target_desc *tdesc_tic6x_c64x_linux; +static void +initialize_tdesc_tic6x_c64x_linux (void) +{ + struct target_desc *result = allocate_target_description (); + struct tdesc_feature *feature; + struct tdesc_type *field_type, *type; + + set_tdesc_architecture (result, bfd_scan_arch ("tic6x")); + + set_tdesc_osabi (result, osabi_from_tdesc_string ("GNU/Linux")); + + feature = tdesc_create_feature (result, "org.gnu.gdb.tic6x.core"); + tdesc_create_reg (feature, "A0", 0, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A1", 1, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A2", 2, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A3", 3, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A4", 4, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A5", 5, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A6", 6, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A7", 7, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A8", 8, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A9", 9, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A10", 10, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A11", 11, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A12", 12, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A13", 13, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A14", 14, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A15", 15, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B0", 16, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B1", 17, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B2", 18, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B3", 19, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B4", 20, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B5", 21, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B6", 22, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B7", 23, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B8", 24, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B9", 25, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B10", 26, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B11", 27, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B12", 28, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B13", 29, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B14", 30, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B15", 31, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "CSR", 32, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "PC", 33, 1, NULL, 32, "code_ptr"); + + feature = tdesc_create_feature (result, "org.gnu.gdb.tic6x.gp"); + tdesc_create_reg (feature, "A16", 34, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A17", 35, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A18", 36, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A19", 37, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A20", 38, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A21", 39, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A22", 40, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A23", 41, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A24", 42, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A25", 43, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A26", 44, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A27", 45, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A28", 46, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A29", 47, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A30", 48, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A31", 49, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B16", 50, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B17", 51, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B18", 52, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B19", 53, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B20", 54, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B21", 55, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B22", 56, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B23", 57, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B24", 58, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B25", 59, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B26", 60, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B27", 61, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B28", 62, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B29", 63, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B30", 64, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B31", 65, 1, NULL, 32, "uint32"); + + tdesc_tic6x_c64x_linux = result; +} diff --git a/gdb/features/tic6x-c64x-linux.xml b/gdb/features/tic6x-c64x-linux.xml new file mode 100644 index 0000000..2d11bd0 --- /dev/null +++ b/gdb/features/tic6x-c64x-linux.xml @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<!-- Copyright (C) 2010, 2011 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. --> + +<!DOCTYPE target SYSTEM "gdb-target.dtd"> +<target> + <architecture>tic6x</architecture> + <osabi>GNU/Linux</osabi> + <xi:include href="tic6x-core.xml"/> + <xi:include href="tic6x-gp.xml"/> +</target> diff --git a/gdb/features/tic6x-c64x.c b/gdb/features/tic6x-c64x.c new file mode 100644 index 0000000..90f1785 --- /dev/null +++ b/gdb/features/tic6x-c64x.c @@ -0,0 +1,88 @@ +/* THIS FILE IS GENERATED. Original: tic6x-c64x.xml */ + +#include "defs.h" +#include "osabi.h" +#include "target-descriptions.h" + +struct target_desc *tdesc_tic6x_c64x; +static void +initialize_tdesc_tic6x_c64x (void) +{ + struct target_desc *result = allocate_target_description (); + struct tdesc_feature *feature; + struct tdesc_type *field_type, *type; + + set_tdesc_architecture (result, bfd_scan_arch ("tic6x")); + + feature = tdesc_create_feature (result, "org.gnu.gdb.tic6x.core"); + tdesc_create_reg (feature, "A0", 0, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A1", 1, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A2", 2, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A3", 3, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A4", 4, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A5", 5, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A6", 6, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A7", 7, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A8", 8, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A9", 9, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A10", 10, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A11", 11, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A12", 12, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A13", 13, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A14", 14, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A15", 15, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B0", 16, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B1", 17, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B2", 18, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B3", 19, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B4", 20, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B5", 21, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B6", 22, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B7", 23, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B8", 24, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B9", 25, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B10", 26, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B11", 27, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B12", 28, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B13", 29, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B14", 30, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B15", 31, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "CSR", 32, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "PC", 33, 1, NULL, 32, "code_ptr"); + + feature = tdesc_create_feature (result, "org.gnu.gdb.tic6x.gp"); + tdesc_create_reg (feature, "A16", 34, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A17", 35, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A18", 36, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A19", 37, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A20", 38, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A21", 39, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A22", 40, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A23", 41, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A24", 42, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A25", 43, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A26", 44, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A27", 45, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A28", 46, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A29", 47, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A30", 48, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A31", 49, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B16", 50, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B17", 51, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B18", 52, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B19", 53, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B20", 54, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B21", 55, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B22", 56, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B23", 57, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B24", 58, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B25", 59, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B26", 60, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B27", 61, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B28", 62, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B29", 63, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B30", 64, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B31", 65, 1, NULL, 32, "uint32"); + + tdesc_tic6x_c64x = result; +} diff --git a/gdb/features/tic6x-c64x.xml b/gdb/features/tic6x-c64x.xml new file mode 100644 index 0000000..a694cb0 --- /dev/null +++ b/gdb/features/tic6x-c64x.xml @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<!-- Copyright (C) 2010, 2011 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. --> + +<!DOCTYPE target SYSTEM "gdb-target.dtd"> +<target> + <architecture>tic6x</architecture> + <xi:include href="tic6x-core.xml"/> + <xi:include href="tic6x-gp.xml"/> +</target> diff --git a/gdb/features/tic6x-c64xp-linux.c b/gdb/features/tic6x-c64xp-linux.c new file mode 100644 index 0000000..a959ec6 --- /dev/null +++ b/gdb/features/tic6x-c64xp-linux.c @@ -0,0 +1,95 @@ +/* THIS FILE IS GENERATED. Original: tic6x-c64xp-linux.xml */ + +#include "defs.h" +#include "osabi.h" +#include "target-descriptions.h" + +struct target_desc *tdesc_tic6x_c64xp_linux; +static void +initialize_tdesc_tic6x_c64xp_linux (void) +{ + struct target_desc *result = allocate_target_description (); + struct tdesc_feature *feature; + struct tdesc_type *field_type, *type; + + set_tdesc_architecture (result, bfd_scan_arch ("tic6x")); + + set_tdesc_osabi (result, osabi_from_tdesc_string ("GNU/Linux")); + + feature = tdesc_create_feature (result, "org.gnu.gdb.tic6x.core"); + tdesc_create_reg (feature, "A0", 0, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A1", 1, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A2", 2, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A3", 3, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A4", 4, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A5", 5, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A6", 6, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A7", 7, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A8", 8, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A9", 9, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A10", 10, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A11", 11, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A12", 12, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A13", 13, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A14", 14, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A15", 15, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B0", 16, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B1", 17, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B2", 18, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B3", 19, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B4", 20, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B5", 21, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B6", 22, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B7", 23, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B8", 24, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B9", 25, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B10", 26, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B11", 27, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B12", 28, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B13", 29, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B14", 30, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B15", 31, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "CSR", 32, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "PC", 33, 1, NULL, 32, "code_ptr"); + + feature = tdesc_create_feature (result, "org.gnu.gdb.tic6x.gp"); + tdesc_create_reg (feature, "A16", 34, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A17", 35, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A18", 36, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A19", 37, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A20", 38, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A21", 39, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A22", 40, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A23", 41, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A24", 42, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A25", 43, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A26", 44, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A27", 45, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A28", 46, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A29", 47, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A30", 48, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A31", 49, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B16", 50, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B17", 51, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B18", 52, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B19", 53, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B20", 54, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B21", 55, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B22", 56, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B23", 57, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B24", 58, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B25", 59, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B26", 60, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B27", 61, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B28", 62, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B29", 63, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B30", 64, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B31", 65, 1, NULL, 32, "uint32"); + + feature = tdesc_create_feature (result, "org.gnu.gdb.tic6x.c6xp"); + tdesc_create_reg (feature, "TSR", 66, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "ILC", 67, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "RILC", 68, 1, NULL, 32, "uint32"); + + tdesc_tic6x_c64xp_linux = result; +} diff --git a/gdb/features/tic6x-c64xp-linux.xml b/gdb/features/tic6x-c64xp-linux.xml new file mode 100644 index 0000000..6ff8407 --- /dev/null +++ b/gdb/features/tic6x-c64xp-linux.xml @@ -0,0 +1,15 @@ +<?xml version="1.0"?> +<!-- Copyright (C) 2010, 2011 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. --> + +<!DOCTYPE target SYSTEM "gdb-target.dtd"> +<target> + <architecture>tic6x</architecture> + <osabi>GNU/Linux</osabi> + <xi:include href="tic6x-core.xml"/> + <xi:include href="tic6x-gp.xml"/> + <xi:include href="tic6x-c6xp.xml"/> +</target> diff --git a/gdb/features/tic6x-c64xp.c b/gdb/features/tic6x-c64xp.c new file mode 100644 index 0000000..90cacb9 --- /dev/null +++ b/gdb/features/tic6x-c64xp.c @@ -0,0 +1,93 @@ +/* THIS FILE IS GENERATED. Original: tic6x-c64xp.xml */ + +#include "defs.h" +#include "osabi.h" +#include "target-descriptions.h" + +struct target_desc *tdesc_tic6x_c64xp; +static void +initialize_tdesc_tic6x_c64xp (void) +{ + struct target_desc *result = allocate_target_description (); + struct tdesc_feature *feature; + struct tdesc_type *field_type, *type; + + set_tdesc_architecture (result, bfd_scan_arch ("tic6x")); + + feature = tdesc_create_feature (result, "org.gnu.gdb.tic6x.core"); + tdesc_create_reg (feature, "A0", 0, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A1", 1, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A2", 2, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A3", 3, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A4", 4, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A5", 5, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A6", 6, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A7", 7, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A8", 8, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A9", 9, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A10", 10, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A11", 11, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A12", 12, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A13", 13, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A14", 14, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A15", 15, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B0", 16, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B1", 17, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B2", 18, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B3", 19, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B4", 20, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B5", 21, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B6", 22, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B7", 23, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B8", 24, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B9", 25, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B10", 26, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B11", 27, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B12", 28, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B13", 29, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B14", 30, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B15", 31, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "CSR", 32, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "PC", 33, 1, NULL, 32, "code_ptr"); + + feature = tdesc_create_feature (result, "org.gnu.gdb.tic6x.gp"); + tdesc_create_reg (feature, "A16", 34, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A17", 35, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A18", 36, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A19", 37, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A20", 38, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A21", 39, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A22", 40, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A23", 41, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A24", 42, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A25", 43, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A26", 44, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A27", 45, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A28", 46, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A29", 47, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A30", 48, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "A31", 49, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B16", 50, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B17", 51, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B18", 52, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B19", 53, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B20", 54, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B21", 55, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B22", 56, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B23", 57, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B24", 58, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B25", 59, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B26", 60, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B27", 61, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B28", 62, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B29", 63, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B30", 64, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "B31", 65, 1, NULL, 32, "uint32"); + + feature = tdesc_create_feature (result, "org.gnu.gdb.tic6x.c6xp"); + tdesc_create_reg (feature, "TSR", 66, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "ILC", 67, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "RILC", 68, 1, NULL, 32, "uint32"); + + tdesc_tic6x_c64xp = result; +} diff --git a/gdb/features/tic6x-c64xp.xml b/gdb/features/tic6x-c64xp.xml new file mode 100644 index 0000000..0ce0e22 --- /dev/null +++ b/gdb/features/tic6x-c64xp.xml @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<!-- Copyright (C) 2010, 2011 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. --> + +<!DOCTYPE target SYSTEM "gdb-target.dtd"> +<target> + <architecture>tic6x</architecture> + <xi:include href="tic6x-core.xml"/> + <xi:include href="tic6x-gp.xml"/> + <xi:include href="tic6x-c6xp.xml"/> +</target> diff --git a/gdb/features/tic6x-c6xp.xml b/gdb/features/tic6x-c6xp.xml new file mode 100644 index 0000000..0923b1b --- /dev/null +++ b/gdb/features/tic6x-c6xp.xml @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<!-- Copyright (C) 2010, 2011 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. --> + +<!DOCTYPE feature SYSTEM "gdb-target.dtd"> +<feature name="org.gnu.gdb.tic6x.c6xp"> + <reg name="TSR" bitsize="32" type="uint32"/> + <reg name="ILC" bitsize="32" type="uint32"/> + <reg name="RILC" bitsize="32" type="uint32"/> +</feature> diff --git a/gdb/features/tic6x-core.xml b/gdb/features/tic6x-core.xml new file mode 100644 index 0000000..63074eb --- /dev/null +++ b/gdb/features/tic6x-core.xml @@ -0,0 +1,44 @@ +<?xml version="1.0"?> +<!-- Copyright (C) 2010, 2011 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. --> + +<!DOCTYPE feature SYSTEM "gdb-target.dtd"> +<feature name="org.gnu.gdb.tic6x.core"> + <reg name="A0" bitsize="32" type="uint32"/> + <reg name="A1" bitsize="32" type="uint32"/> + <reg name="A2" bitsize="32" type="uint32"/> + <reg name="A3" bitsize="32" type="uint32"/> + <reg name="A4" bitsize="32" type="uint32"/> + <reg name="A5" bitsize="32" type="uint32"/> + <reg name="A6" bitsize="32" type="uint32"/> + <reg name="A7" bitsize="32" type="uint32"/> + <reg name="A8" bitsize="32" type="uint32"/> + <reg name="A9" bitsize="32" type="uint32"/> + <reg name="A10" bitsize="32" type="uint32"/> + <reg name="A11" bitsize="32" type="uint32"/> + <reg name="A12" bitsize="32" type="uint32"/> + <reg name="A13" bitsize="32" type="uint32"/> + <reg name="A14" bitsize="32" type="uint32"/> + <reg name="A15" bitsize="32" type="uint32"/> + <reg name="B0" bitsize="32" type="uint32"/> + <reg name="B1" bitsize="32" type="uint32"/> + <reg name="B2" bitsize="32" type="uint32"/> + <reg name="B3" bitsize="32" type="uint32"/> + <reg name="B4" bitsize="32" type="uint32"/> + <reg name="B5" bitsize="32" type="uint32"/> + <reg name="B6" bitsize="32" type="uint32"/> + <reg name="B7" bitsize="32" type="uint32"/> + <reg name="B8" bitsize="32" type="uint32"/> + <reg name="B9" bitsize="32" type="uint32"/> + <reg name="B10" bitsize="32" type="uint32"/> + <reg name="B11" bitsize="32" type="uint32"/> + <reg name="B12" bitsize="32" type="uint32"/> + <reg name="B13" bitsize="32" type="uint32"/> + <reg name="B14" bitsize="32" type="uint32"/> + <reg name="B15" bitsize="32" type="uint32"/> + <reg name="CSR" bitsize="32" type="uint32"/> + <reg name="PC" bitsize="32" type="code_ptr"/> +</feature> diff --git a/gdb/features/tic6x-gp.xml b/gdb/features/tic6x-gp.xml new file mode 100644 index 0000000..d1249f3 --- /dev/null +++ b/gdb/features/tic6x-gp.xml @@ -0,0 +1,42 @@ +<?xml version="1.0"?> +<!-- Copyright (C) 2010, 2011 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. --> + +<!DOCTYPE feature SYSTEM "gdb-target.dtd"> +<feature name="org.gnu.gdb.tic6x.gp"> + <reg name="A16" bitsize="32" type="uint32"/> + <reg name="A17" bitsize="32" type="uint32"/> + <reg name="A18" bitsize="32" type="uint32"/> + <reg name="A19" bitsize="32" type="uint32"/> + <reg name="A20" bitsize="32" type="uint32"/> + <reg name="A21" bitsize="32" type="uint32"/> + <reg name="A22" bitsize="32" type="uint32"/> + <reg name="A23" bitsize="32" type="uint32"/> + <reg name="A24" bitsize="32" type="uint32"/> + <reg name="A25" bitsize="32" type="uint32"/> + <reg name="A26" bitsize="32" type="uint32"/> + <reg name="A27" bitsize="32" type="uint32"/> + <reg name="A28" bitsize="32" type="uint32"/> + <reg name="A29" bitsize="32" type="uint32"/> + <reg name="A30" bitsize="32" type="uint32"/> + <reg name="A31" bitsize="32" type="uint32"/> + <reg name="B16" bitsize="32" type="uint32"/> + <reg name="B17" bitsize="32" type="uint32"/> + <reg name="B18" bitsize="32" type="uint32"/> + <reg name="B19" bitsize="32" type="uint32"/> + <reg name="B20" bitsize="32" type="uint32"/> + <reg name="B21" bitsize="32" type="uint32"/> + <reg name="B22" bitsize="32" type="uint32"/> + <reg name="B23" bitsize="32" type="uint32"/> + <reg name="B24" bitsize="32" type="uint32"/> + <reg name="B25" bitsize="32" type="uint32"/> + <reg name="B26" bitsize="32" type="uint32"/> + <reg name="B27" bitsize="32" type="uint32"/> + <reg name="B28" bitsize="32" type="uint32"/> + <reg name="B29" bitsize="32" type="uint32"/> + <reg name="B30" bitsize="32" type="uint32"/> + <reg name="B31" bitsize="32" type="uint32"/> +</feature> |