📄 reg_flag.h
字号:
/* -*- C++ -*- */
/**
* Copyright (c) 2005 Zhejiang University, P.R.China
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, 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 of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
///==================================================
/**
* @file Reg_Flag.h
* @brief Flag bits in some sprs
*
* @author Chenfeng Zhou <ini_autumn@163.com>
*
* Created : <2005-02-26 15:46:22 by Cheney Chow>
* Last update: <2005-02-26 19:21:58 by Cheney Chow>
*
* $Id: Reg_Flag.h,v 1.1 2005/06/16 06:01:51 qilj Exp $
*/
///==================================================
#ifndef _PPC_REG_FLAG_H_
#define _PPC_REG_FLAG_H_
namespace PPC
{
class Reg_Flag {
public:
static const int CR0_HIGH = 31;
static const int CR0_LOW = 28;
static const int CR0_LT = 31;
static const int CR0_GT = 30;
static const int CR0_EQ = 29;
static const int CR0_SO = 28; //!< Summary Overflow;
static const int XER_SO = 31;
static const int XER_CA = 29;
static int XER_N(int v) {return v & 0x7f;}
static const int MSR_RI = 1;
static const int MSR_ME = 12;
static const int MSR_PR = 14;
static const int MSR_EE = 15;
static const int MSR_POW = 18;
static const int MSR_RFI_SAVE_MASK = 0xff73;
static const int MSR_IS = 5;
static const int MSR_DS = 4;
//! MMU set translation space;
static const int MMUCR_STS = 16;
//! MMU related;
static const int CCR0_CRPE = 27;
static const int CCR0_PRE = 30;
};
} // namespace PPC
#endif // _PPC_REG_FLAG_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -