2006-11-22 14:49:53 +01:00
|
|
|
/* SPU target-dependent code for GDB, the GNU debugger.
|
2008-01-01 23:53:26 +01:00
|
|
|
Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc.
|
2006-11-22 14:49:53 +01:00
|
|
|
|
|
|
|
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
|
2007-08-23 20:08:50 +02:00
|
|
|
the Free Software Foundation; either version 3 of the License, or
|
2006-11-22 14:49:53 +01:00
|
|
|
(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
|
2007-08-23 20:08:50 +02:00
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
2006-11-22 14:49:53 +01:00
|
|
|
|
|
|
|
#ifndef SPU_TDEP_H
|
|
|
|
#define SPU_TDEP_H
|
|
|
|
|
|
|
|
/* Number of registers. */
|
|
|
|
#define SPU_NUM_REGS 130
|
2007-06-12 16:35:26 +02:00
|
|
|
#define SPU_NUM_PSEUDO_REGS 6
|
2006-11-22 14:49:53 +01:00
|
|
|
#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. */
|
2007-06-12 16:35:26 +02:00
|
|
|
SPU_SP_REGNUM = 130, /* Stack pointer (preferred slot). */
|
|
|
|
SPU_FPSCR_REGNUM = 131, /* Floating point status/control register. */
|
|
|
|
SPU_SRR0_REGNUM = 132, /* SRR0 register. */
|
|
|
|
SPU_LSLR_REGNUM = 133, /* Local store limit register. */
|
|
|
|
SPU_DECR_REGNUM = 134, /* Decrementer value. */
|
|
|
|
SPU_DECR_STATUS_REGNUM = 135 /* Decrementer status. */
|
2006-11-22 14:49:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Local store. */
|
|
|
|
#define SPU_LS_SIZE 0x40000
|
|
|
|
|
|
|
|
#endif
|