⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 registers.h

📁 这个是LINUX下的GDB调度工具的源码
💻 H
字号:
/* Register definitions for the FRV simulator   Copyright (C) 2000 Free Software Foundation, Inc.   Contributed by Red Hat.This file is part of the GNU Simulators.This program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public License alongwith this program; if not, write to the Free Software Foundation, Inc.,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */#ifndef REGISTERS_H#define REGISTERS_H#define FRV_MAX_GR  64#define FRV_MAX_FR  64#define FRV_MAX_CPR 64#define FRV_MAX_SPR 4096/* Register init, reset values and read_only masks.  */typedef struct{  USI init_value;     /* initial value */  USI reset_value;    /* value for software reset */  USI reset_mask;     /* bits which are reset */  USI read_only_mask; /* bits which are read-only */  char implemented;   /* 1==register is implemented */  char supervisor;    /* 1==register is supervisor-only */} FRV_SPR_CONTROL_INFO;typedef struct{  int fr;                    /* FR registers implemented */  int cpr;                   /* coprocessor registers implemented */  FRV_SPR_CONTROL_INFO *spr; /* SPR implementation details */} FRV_REGISTER_CONTROL;void frv_register_control_init (SIM_CPU *);void frv_initialize_spr (SIM_CPU *);void frv_reset_spr (SIM_CPU *);void frv_check_spr_access (SIM_CPU *, UINT);void frv_fr_registers_available (SIM_CPU *, int *, int *);void frv_gr_registers_available (SIM_CPU *, int *, int *);int  frv_check_register_access (SIM_CPU *, SI, int, int);int  frv_check_gr_access (SIM_CPU *, SI);int  frv_check_fr_access (SIM_CPU *, SI);#endif /* REGISTERS_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -