1251875Speter/* This file defines the interface between the FR-V simulator and GDB.
2251875Speter
3251875Speter   Copyright 2003 Free Software Foundation, Inc.
4251875Speter
5251875Speter   Contributed by Red Hat.
6251875Speter
7251875Speter   This file is part of GDB.
8251875Speter
9251875Speter   This program is free software; you can redistribute it and/or
10251875Speter   modify it under the terms of the GNU General Public License as
11251875Speter   published by the Free Software Foundation; either version 2 of the
12251875Speter   License, or (at your option) any later version.
13251875Speter
14251875Speter   This program is distributed in the hope that it will be useful, but
15251875Speter   WITHOUT ANY WARRANTY; without even the implied warranty of
16251875Speter   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17251875Speter   General Public License for more details.
18251875Speter
19251875Speter   You should have received a copy of the GNU General Public License
20251875Speter   along with this program; if not, write to the Free Software
21251875Speter   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22251875Speter   02111-1307, USA.  */
23251875Speter
24251875Speter#if !defined (SIM_FRV_H)
25251875Speter#define SIM_FRV_H
26251875Speter
27251875Speter#ifdef __cplusplus
28251875Speterextern "C" { // }
29251875Speter#endif
30251875Speter
31251875Speterenum sim_frv_regs
32251875Speter{
33251875Speter  SIM_FRV_GR0_REGNUM  = 0,
34251875Speter  SIM_FRV_GR63_REGNUM = 63,
35251875Speter  SIM_FRV_FR0_REGNUM  = 64,
36251875Speter  SIM_FRV_FR63_REGNUM = 127,
37251875Speter  SIM_FRV_PC_REGNUM   = 128,
38251875Speter
39251875Speter  /* An FR-V architecture may have up to 4096 special purpose registers
40251875Speter     (SPRs).  In order to determine a specific constant used to access
41251875Speter     a particular SPR, one of the H_SPR_ prefixed offsets defined in
42251875Speter     opcodes/frv-desc.h should be added to SIM_FRV_SPR0_REGNUM.  So,
43251875Speter     for example, the number that GDB uses to fetch the link register
44251875Speter     from the simulator is (SIM_FRV_SPR0_REGNUM + H_SPR_LR).  */
45251875Speter  SIM_FRV_SPR0_REGNUM = 129,
46251875Speter  SIM_FRV_SPR4095_REGNUM = SIM_FRV_SPR0_REGNUM + 4095
47251875Speter};
48251875Speter
49251875Speter#ifdef __cplusplus
50251875Speter}
51251875Speter#endif
52251875Speter
53251875Speter#endif
54251875Speter