📄 cpu.c
字号:
/* Misc. support for CPU family m32rbf.THIS FILE IS MACHINE GENERATED WITH CGEN.Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.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.*/#define WANT_CPU m32rbf#define WANT_CPU_M32RBF#include "sim-main.h"#include "cgen-ops.h"/* Get the value of h-pc. */USIm32rbf_h_pc_get (SIM_CPU *current_cpu){ return CPU (h_pc);}/* Set a value for h-pc. */voidm32rbf_h_pc_set (SIM_CPU *current_cpu, USI newval){ CPU (h_pc) = newval;}/* Get the value of h-gr. */SIm32rbf_h_gr_get (SIM_CPU *current_cpu, UINT regno){ return CPU (h_gr[regno]);}/* Set a value for h-gr. */voidm32rbf_h_gr_set (SIM_CPU *current_cpu, UINT regno, SI newval){ CPU (h_gr[regno]) = newval;}/* Get the value of h-cr. */USIm32rbf_h_cr_get (SIM_CPU *current_cpu, UINT regno){ return GET_H_CR (regno);}/* Set a value for h-cr. */voidm32rbf_h_cr_set (SIM_CPU *current_cpu, UINT regno, USI newval){ SET_H_CR (regno, newval);}/* Get the value of h-accum. */DIm32rbf_h_accum_get (SIM_CPU *current_cpu){ return GET_H_ACCUM ();}/* Set a value for h-accum. */voidm32rbf_h_accum_set (SIM_CPU *current_cpu, DI newval){ SET_H_ACCUM (newval);}/* Get the value of h-cond. */BIm32rbf_h_cond_get (SIM_CPU *current_cpu){ return CPU (h_cond);}/* Set a value for h-cond. */voidm32rbf_h_cond_set (SIM_CPU *current_cpu, BI newval){ CPU (h_cond) = newval;}/* Get the value of h-psw. */UQIm32rbf_h_psw_get (SIM_CPU *current_cpu){ return GET_H_PSW ();}/* Set a value for h-psw. */voidm32rbf_h_psw_set (SIM_CPU *current_cpu, UQI newval){ SET_H_PSW (newval);}/* Get the value of h-bpsw. */UQIm32rbf_h_bpsw_get (SIM_CPU *current_cpu){ return CPU (h_bpsw);}/* Set a value for h-bpsw. */voidm32rbf_h_bpsw_set (SIM_CPU *current_cpu, UQI newval){ CPU (h_bpsw) = newval;}/* Get the value of h-bbpsw. */UQIm32rbf_h_bbpsw_get (SIM_CPU *current_cpu){ return CPU (h_bbpsw);}/* Set a value for h-bbpsw. */voidm32rbf_h_bbpsw_set (SIM_CPU *current_cpu, UQI newval){ CPU (h_bbpsw) = newval;}/* Get the value of h-lock. */BIm32rbf_h_lock_get (SIM_CPU *current_cpu){ return CPU (h_lock);}/* Set a value for h-lock. */voidm32rbf_h_lock_set (SIM_CPU *current_cpu, BI newval){ CPU (h_lock) = newval;}/* Record trace results for INSN. */voidm32rbf_record_trace_results (SIM_CPU *current_cpu, CGEN_INSN *insn, int *indices, TRACE_RECORD *tr){}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -