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