branchrs.h
来自「ppc750 system design simulator using sys」· C头文件 代码 · 共 50 行
H
50 行
/*************************************************************************** BranchRS.h - description ------------------- begin : Mon May 28 2001 copyright : (C) 2001 Universite Paris Sud and CEA author : Gilles Mouchard email : gilles.mouchard@lri.fr, gilles.mouchard@.cea.fr ***************************************************************************/#ifndef __BRANCHRS_H__#define __BRANCHRS_H__#include <common.h>#include <Queue.h>struct BranchRS{ BranchOperation operation; /* branch operation */ BranchTags tags; /* tags of the instruction */ /* Operands */ UInt32 pc; /* program counter of the branch instruction */ ConditionRegisterRSEntry cr; /* the CR field value if needed by the branch instruction */ LinkRegisterRSEntry lr; /* the LR value if needed by the branch instruction */ CountRegisterRSEntry ctr; /* the CTR value if needed by the branch instruction */ UInt32 immed; /* the immediate value if need by the branch instruction */ bool branchPredictedTaken; /* true if the branch has been predicted taken */ int branchCounter; /* number of previous that the branch instruction depends on */#if defined(DEBUG) || defined(TRACE) UInt32 dbgInstructionCounter; UInt32 dbgInstruction;#endif BranchRS(); bool Valid(); void UpdateLinkRegister(int tag, UInt32 data); void UpdateConditionRegister(int tag, UInt8 crfield); void UpdateCountRegister(int tag, UInt32 data);};struct BranchRSQueue : Queue<BranchRS, nBranchRS>{ void UpdateLinkRegister(int tag, UInt32 data); void UpdateConditionRegister(int tag, UInt8 data); void UpdateCountRegister(int tag, UInt32 data); void DecrementBranchCounter();};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?