1/* This file defines the interface between the FR-V simulator and GDB.
2
3   Copyright 2003 Free Software Foundation, Inc.
4
5   Contributed by Red Hat.
6
7   This file is part of GDB.
8
9   This program is free software; you can redistribute it and/or
10   modify it under the terms of the GNU General Public License as
11   published by the Free Software Foundation; either version 2 of the
12   License, or (at your option) any later version.
13
14   This program is distributed in the hope that it will be useful, but
15   WITHOUT ANY WARRANTY; without even the implied warranty of
16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17   General Public License for more details.
18
19   You should have received a copy of the GNU General Public License
20   along with this program; if not, write to the Free Software
21   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22   02111-1307, USA.  */
23
24#if !defined (SIM_FRV_H)
25#define SIM_FRV_H
26
27#ifdef __cplusplus
28extern "C" { // }
29#endif
30
31enum sim_frv_regs
32{
33  SIM_FRV_GR0_REGNUM  = 0,
34  SIM_FRV_GR63_REGNUM = 63,
35  SIM_FRV_FR0_REGNUM  = 64,
36  SIM_FRV_FR63_REGNUM = 127,
37  SIM_FRV_PC_REGNUM   = 128,
38
39  /* An FR-V architecture may have up to 4096 special purpose registers
40     (SPRs).  In order to determine a specific constant used to access
41     a particular SPR, one of the H_SPR_ prefixed offsets defined in
42     opcodes/frv-desc.h should be added to SIM_FRV_SPR0_REGNUM.  So,
43     for example, the number that GDB uses to fetch the link register
44     from the simulator is (SIM_FRV_SPR0_REGNUM + H_SPR_LR).  */
45  SIM_FRV_SPR0_REGNUM = 129,
46  SIM_FRV_SPR4095_REGNUM = SIM_FRV_SPR0_REGNUM + 4095
47};
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif
54