~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to binutils/include/gdb/sim-sh.h

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file defines the interface between the sh simulator and gdb.
 
2
   Copyright (C) 2002 Free Software Foundation, Inc.
 
3
 
 
4
This file is part of GDB.
 
5
 
 
6
This program is free software; you can redistribute it and/or modify
 
7
it under the terms of the GNU General Public License as published by
 
8
the Free Software Foundation; either version 2 of the License, or
 
9
(at your option) any later version.
 
10
 
 
11
This program is distributed in the hope that it will be useful,
 
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
GNU General Public License for more details.
 
15
 
 
16
You should have received a copy of the GNU General Public License
 
17
along with this program; if not, write to the Free Software
 
18
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
19
 
 
20
#if !defined (SIM_SH_H)
 
21
#define SIM_SH_H
 
22
 
 
23
#ifdef __cplusplus
 
24
extern "C" { // }
 
25
#endif
 
26
 
 
27
/* The simulator makes use of the following register information. */
 
28
 
 
29
enum
 
30
  {
 
31
    SIM_SH64_R0_REGNUM = 0,
 
32
    SIM_SH64_SP_REGNUM = 15,
 
33
    SIM_SH64_PC_REGNUM = 64,
 
34
    SIM_SH64_SR_REGNUM = 65,
 
35
    SIM_SH64_SSR_REGNUM = 66,
 
36
    SIM_SH64_SPC_REGNUM = 67,
 
37
    SIM_SH64_TR0_REGNUM = 68,
 
38
    SIM_SH64_FPCSR_REGNUM = 76,
 
39
    SIM_SH64_FR0_REGNUM = 77
 
40
  };
 
41
 
 
42
enum
 
43
  {
 
44
    SIM_SH64_NR_REGS = 141,  /* total number of architectural registers */
 
45
    SIM_SH64_NR_R_REGS = 64, /* number of general registers */
 
46
    SIM_SH64_NR_TR_REGS = 8, /* number of target registers */
 
47
    SIM_SH64_NR_FP_REGS = 64 /* number of floating point registers */
 
48
  };
 
49
 
 
50
#ifdef __cplusplus
 
51
}
 
52
#endif
 
53
 
 
54
#endif