aboutsummaryrefslogtreecommitdiff
path: root/gdb/spu-tdep.h
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2006-11-22 13:49:53 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2006-11-22 13:49:53 +0000
commit771b4502d5e67d90e46529beb9e73ec37151828d (patch)
tree412025f292ae66f4a2a13bfcebfe3cf48e123107 /gdb/spu-tdep.h
parent0b2b0195d1b3b75d9fd0e5313466a0141790071d (diff)
downloadfsf-binutils-gdb-771b4502d5e67d90e46529beb9e73ec37151828d.zip
fsf-binutils-gdb-771b4502d5e67d90e46529beb9e73ec37151828d.tar.gz
fsf-binutils-gdb-771b4502d5e67d90e46529beb9e73ec37151828d.tar.bz2
* config/powerpc/spu-linux.mh: New file.
* config/spu/spu.mt: New file. * configure.ac: Provide gdb_native configuration variable. * configure: Regenerate. * configure.host: Support powerpc64 to spu 'pseudo-native' mode. * configure.tgt: Add "spu" target_cpu and "spu*-*-*" target. * Makefile.in (spu_tdep_h): New variable. (ALLDEPFILES): Add spu-linux-nat.c and spu-tdep.c (spu-linux-nat.o, spu-tdep.o): Add dependencies. * spu-linux-nat.c: New file. * spu-tdep.c: New file. * spu-tdep.h: New file.
Diffstat (limited to 'gdb/spu-tdep.h')
-rw-r--r--gdb/spu-tdep.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/gdb/spu-tdep.h b/gdb/spu-tdep.h
new file mode 100644
index 0000000..8bf8309
--- /dev/null
+++ b/gdb/spu-tdep.h
@@ -0,0 +1,50 @@
+/* SPU target-dependent code for GDB, the GNU debugger.
+ Copyright (C) 2006 Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA. */
+
+#ifndef SPU_TDEP_H
+#define SPU_TDEP_H
+
+/* Number of registers. */
+#define SPU_NUM_REGS 130
+#define SPU_NUM_PSEUDO_REGS 1
+#define SPU_NUM_GPRS 128
+
+/* Register numbers of various important registers. */
+enum spu_regnum
+{
+ /* SPU calling convention. */
+ SPU_LR_REGNUM = 0, /* Link register. */
+ SPU_RAW_SP_REGNUM = 1, /* Stack pointer (full register). */
+ SPU_ARG1_REGNUM = 3, /* First argument register. */
+ SPU_ARGN_REGNUM = 74, /* Last argument register. */
+ SPU_SAVED1_REGNUM = 80, /* First call-saved register. */
+ SPU_SAVEDN_REGNUM = 127, /* Last call-saved register. */
+ SPU_FP_REGNUM = 127, /* Frame pointer. */
+
+ /* Special registers. */
+ SPU_ID_REGNUM = 128, /* SPU ID register. */
+ SPU_PC_REGNUM = 129, /* Next program counter. */
+ SPU_SP_REGNUM = 130 /* Stack pointer (preferred slot). */
+};
+
+/* Local store. */
+#define SPU_LS_SIZE 0x40000
+
+#endif