Index: gdb/features/mips-dsp-linux.c |
diff --git a/gdb/features/mips-linux.c b/gdb/features/mips-dsp-linux.c |
similarity index 86% |
copy from gdb/features/mips-linux.c |
copy to gdb/features/mips-dsp-linux.c |
index 2af6b84021716c9a7dde5c55d1a9a4ebb7a12d23..20e4ee35cd0604a7074b3efa9570544c75fd4161 100644 |
--- a/gdb/features/mips-linux.c |
+++ b/gdb/features/mips-dsp-linux.c |
@@ -1,18 +1,20 @@ |
-/* THIS FILE IS GENERATED. Original: mips-linux.xml */ |
+/* THIS FILE IS GENERATED. Original: mips-dsp-linux.xml */ |
#include "defs.h" |
+#include "osabi.h" |
#include "target-descriptions.h" |
-struct target_desc *tdesc_mips_linux; |
+struct target_desc *tdesc_mips_dsp_linux; |
static void |
-initialize_tdesc_mips_linux (void) |
+initialize_tdesc_mips_dsp_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 ("mips")); |
+ set_tdesc_osabi (result, osabi_from_tdesc_string ("GNU/Linux")); |
+ |
feature = tdesc_create_feature (result, "org.gnu.gdb.mips.cpu"); |
tdesc_create_reg (feature, "r0", 0, 1, NULL, 32, "int"); |
tdesc_create_reg (feature, "r1", 1, 1, NULL, 32, "int"); |
@@ -91,8 +93,17 @@ initialize_tdesc_mips_linux (void) |
tdesc_create_reg (feature, "fcsr", 70, 1, "float", 32, "int"); |
tdesc_create_reg (feature, "fir", 71, 1, "float", 32, "int"); |
+ feature = tdesc_create_feature (result, "org.gnu.gdb.mips.dsp"); |
+ tdesc_create_reg (feature, "hi1", 72, 1, NULL, 32, "int"); |
+ tdesc_create_reg (feature, "lo1", 73, 1, NULL, 32, "int"); |
+ tdesc_create_reg (feature, "hi2", 74, 1, NULL, 32, "int"); |
+ tdesc_create_reg (feature, "lo2", 75, 1, NULL, 32, "int"); |
+ tdesc_create_reg (feature, "hi3", 76, 1, NULL, 32, "int"); |
+ tdesc_create_reg (feature, "lo3", 77, 1, NULL, 32, "int"); |
+ tdesc_create_reg (feature, "dspctl", 78, 1, NULL, 32, "int"); |
+ |
feature = tdesc_create_feature (result, "org.gnu.gdb.mips.linux"); |
- tdesc_create_reg (feature, "restart", 72, 1, "system", 32, "int"); |
+ tdesc_create_reg (feature, "restart", 79, 1, "system", 32, "int"); |
- tdesc_mips_linux = result; |
+ tdesc_mips_dsp_linux = result; |
} |