diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2013-05-07 01:09:29 +0000 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2013-05-07 01:09:29 +0000 |
commit | a1217d97c4b0449d052fad3d2df2ab58b48f918c (patch) | |
tree | 98066c44279440ecd359a4ed516c02afd22a9eae /gdb/features/nios2-linux.c | |
parent | 3b7bacacfd7689e3dc00b8eea809eb7a13010ab9 (diff) | |
download | gdb-a1217d97c4b0449d052fad3d2df2ab58b48f918c.zip gdb-a1217d97c4b0449d052fad3d2df2ab58b48f918c.tar.gz gdb-a1217d97c4b0449d052fad3d2df2ab58b48f918c.tar.bz2 |
2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
Andrew Jenner <andrew@codesourcery.com>
Chung-Lin Tang <cltang@codesourcery.com>
Julian Brown <julian@codesourcery.com>
Based on the nios2-elf port from Altera Corporation.
gdb/
* Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
nios2-linux-tdep.o.
(HFILES_NO_SRCDIR): Add nios2-tdep.h.
(ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
* configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
* nios2-tdep.h: New.
* nios2-tdep.c: New.
* nios2-linux-tdep.c: New.
* features/Makefile (WHICH): Add nios2-linux.
(nios2-linux-expedite): Set.
* features/nios2-cpu.xml: New.
* features/nios2.xml: New.
* features/nios2-linux.xml: New.
* features/nios2.c: New (autogenerated).
* features/nios2-linux.c: New (autogenerated).
* regformats/nios2-linux.dat: New (autogenerated).
* NEWS (Changes since GDB 7.6): Add new Nios II targets
and commands.
gdb/doc/
* gdb.texinfo (Nios II): New section.
(Nios II Features): New section.
Diffstat (limited to 'gdb/features/nios2-linux.c')
-rw-r--r-- | gdb/features/nios2-linux.c | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/gdb/features/nios2-linux.c b/gdb/features/nios2-linux.c new file mode 100644 index 0000000..d384d7f --- /dev/null +++ b/gdb/features/nios2-linux.c @@ -0,0 +1,71 @@ +/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: + Original: nios2-linux.xml */ + +#include "defs.h" +#include "osabi.h" +#include "target-descriptions.h" + +struct target_desc *tdesc_nios2_linux; +static void +initialize_tdesc_nios2_linux (void) +{ + struct target_desc *result = allocate_target_description (); + struct tdesc_feature *feature; + + set_tdesc_architecture (result, bfd_scan_arch ("nios2")); + + set_tdesc_osabi (result, osabi_from_tdesc_string ("GNU/Linux")); + + feature = tdesc_create_feature (result, "org.gnu.gdb.nios2.cpu"); + tdesc_create_reg (feature, "zero", 0, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "at", 1, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r2", 2, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r3", 3, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r4", 4, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r5", 5, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r6", 6, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r7", 7, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r8", 8, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r9", 9, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r10", 10, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r11", 11, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r12", 12, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r13", 13, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r14", 14, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r15", 15, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r16", 16, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r17", 17, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r18", 18, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r19", 19, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r20", 20, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r21", 21, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r22", 22, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "r23", 23, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "et", 24, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "bt", 25, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "gp", 26, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "sp", 27, 1, NULL, 32, "data_ptr"); + tdesc_create_reg (feature, "fp", 28, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "ea", 29, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "ba", 30, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "ra", 31, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "pc", 32, 1, NULL, 32, "code_ptr"); + tdesc_create_reg (feature, "status", 33, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "estatus", 34, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "bstatus", 35, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "ienable", 36, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "ipending", 37, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "cpuid", 38, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "ctl6", 39, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "exception", 40, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "pteaddr", 41, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "tlbacc", 42, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "tlbmisc", 43, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "eccinj", 44, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "badaddr", 45, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "config", 46, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "mpubase", 47, 1, NULL, 32, "uint32"); + tdesc_create_reg (feature, "mpuacc", 48, 1, NULL, 32, "uint32"); + + tdesc_nios2_linux = result; +} |