OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gdb/] [gdb-6.8/] [gdb/] [scarts_32-tdep.h] - Blame information for rev 25

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 25 jlechner
/* SCARTS (32-bit) target-dependent code for GDB, the GNU debugger.
2
   Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc.
3
   Contributed by Martin Walter <mwalter@opencores.org>
4
 
5
   This file is part of GDB.
6
 
7
   This program is free software; you can redistribute it and/or modify
8
   it under the terms of the GNU General Public License as published by
9
   the Free Software Foundation; either version 3 of the License, or
10
   (at your option) any later version.
11
 
12
   This program is distributed in the hope that it will be useful,
13
   but WITHOUT ANY WARRANTY; without even the implied warranty of
14
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
   GNU General Public License for more details.
16
 
17
   You should have received a copy of the GNU General Public License
18
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
19
 
20
 
21
#ifndef __SCARTS_32_TDEP_H__
22
#define __SCARTS_32_TDEP_H__
23
 
24
#include "gdb/sim-scarts_32.h"
25
 
26
/* SCARTS architecture specific information. */
27
struct gdbarch_tdep
28
{
29
  unsigned int  num_gp_regs;
30
  unsigned int  num_sp_regs;
31
  unsigned int  num_pseudo_regs;
32
  int           pc_regnum;
33
  int           fp_regnum;
34
  int           sp_regnum;
35
  int           bytes_per_word;
36
  int           bytes_per_address;
37
};
38
 
39
/* Byte array for the ILLOP instruction used for breakpoints. */
40
#define SCARTS_ILLOP_INSN_STRUCT   {0xFF, 0xFF}
41
/* Integer for the ILLOP instruction used for breakpoints. */
42
#define SCARTS_ILLOP_INSN   0xFFFF
43
 
44
/* Properties of the architecture. */
45
#define SCARTS_NUM_GP_REGS             16
46
#define SCARTS_NUM_SP_REGS              4
47
#define SCARTS_NUM_PSEUDO_REGS          0
48
#define SCARTS_NUM_REGS                (SCARTS_NUM_GP_REGS + SCARTS_NUM_SP_REGS)
49
#define SCARTS_TOTAL_NUM_REGS          (SCARTS_NUM_REGS + SCARTS_NUM_PSEUDO_REGS)
50
#define SCARTS_NUM_INT_VECTORS         16
51
#define SCARTS_NUM_EXC_VECTORS         16
52
#define SCARTS_NUM_VECTORS             (SCARTS_NUM_INT_VECTORS + SCARTS_NUM_EXC_VECTORS)
53
#define SCARTS_INSN_SIZE                2
54
#define SCARTS_STACK_ALIGN              SCARTS_WORD_SIZE
55
#define SCARTS_FRAME_RED_ZONE_SIZE   2536
56
 
57
/* Description of the register file. */
58
#define SCARTS_RET_VAL_REGNUM    0 
59
#define SCARTS_1ST_ARG_REGNUM    1
60
#define SCARTS_2ND_ARG_REGNUM    2
61
#define SCARTS_3RD_ARG_REGNUM    3
62
#define SCARTS_4TH_ARG_REGNUM    4
63
#define SCARTS_RTS_REGNUM       14
64
#define SCARTS_RTE_REGNUM       15
65
#define SCARTS_PC_REGNUM        16
66
#define SCARTS_FP_REGNUM        18
67
#define SCARTS_SP_REGNUM        19
68
 
69
#endif
70
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.