Back to index

cell-binutils  2.17cvs20070401
sim-frv.h
Go to the documentation of this file.
00001 /* This file defines the interface between the FR-V simulator and GDB.
00002 
00003    Copyright 2003, 2007 Free Software Foundation, Inc.
00004 
00005    Contributed by Red Hat.
00006 
00007    This file is part of GDB.
00008 
00009    This program is free software; you can redistribute it and/or
00010    modify it under the terms of the GNU General Public License as
00011    published by the Free Software Foundation; either version 2 of the
00012    License, or (at your option) any later version.
00013 
00014    This program is distributed in the hope that it will be useful, but
00015    WITHOUT ANY WARRANTY; without even the implied warranty of
00016    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017    General Public License for more details.
00018 
00019    You should have received a copy of the GNU General Public License
00020    along with this program; if not, write to the Free Software
00021    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00022    02111-1307, USA.  */
00023 
00024 #if !defined (SIM_FRV_H)
00025 #define SIM_FRV_H
00026 
00027 #ifdef __cplusplus
00028 extern "C" { // }
00029 #endif
00030 
00031 enum sim_frv_regs
00032 {
00033   SIM_FRV_GR0_REGNUM  = 0,
00034   SIM_FRV_GR63_REGNUM = 63,
00035   SIM_FRV_FR0_REGNUM  = 64,
00036   SIM_FRV_FR63_REGNUM = 127,
00037   SIM_FRV_PC_REGNUM   = 128,
00038 
00039   /* An FR-V architecture may have up to 4096 special purpose registers
00040      (SPRs).  In order to determine a specific constant used to access
00041      a particular SPR, one of the H_SPR_ prefixed offsets defined in
00042      opcodes/frv-desc.h should be added to SIM_FRV_SPR0_REGNUM.  So,
00043      for example, the number that GDB uses to fetch the link register
00044      from the simulator is (SIM_FRV_SPR0_REGNUM + H_SPR_LR).  */
00045   SIM_FRV_SPR0_REGNUM = 129,
00046   SIM_FRV_SPR4095_REGNUM = SIM_FRV_SPR0_REGNUM + 4095
00047 };
00048 
00049 #ifdef __cplusplus
00050 }
00051 #endif
00052 
00053 #endif