GDB (API)
/home/stan/gdb/src/include/gdb/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-2013 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 modify
00010    it under the terms of the GNU General Public License as published by
00011    the Free Software Foundation; either version 3 of the License, or
00012    (at your option) any later version.
00013 
00014    This program is distributed in the hope that it will be useful,
00015    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017    GNU 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, see <http://www.gnu.org/licenses/>.  */
00021 
00022 #if !defined (SIM_FRV_H)
00023 #define SIM_FRV_H
00024 
00025 #ifdef __cplusplus
00026 extern "C" { // }
00027 #endif
00028 
00029 enum sim_frv_regs
00030 {
00031   SIM_FRV_GR0_REGNUM  = 0,
00032   SIM_FRV_GR63_REGNUM = 63,
00033   SIM_FRV_FR0_REGNUM  = 64,
00034   SIM_FRV_FR63_REGNUM = 127,
00035   SIM_FRV_PC_REGNUM   = 128,
00036 
00037   /* An FR-V architecture may have up to 4096 special purpose registers
00038      (SPRs).  In order to determine a specific constant used to access
00039      a particular SPR, one of the H_SPR_ prefixed offsets defined in
00040      opcodes/frv-desc.h should be added to SIM_FRV_SPR0_REGNUM.  So,
00041      for example, the number that GDB uses to fetch the link register
00042      from the simulator is (SIM_FRV_SPR0_REGNUM + H_SPR_LR).  */
00043   SIM_FRV_SPR0_REGNUM = 129,
00044   SIM_FRV_SPR4095_REGNUM = SIM_FRV_SPR0_REGNUM + 4095
00045 };
00046 
00047 #ifdef __cplusplus
00048 }
00049 #endif
00050 
00051 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines