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

📄 instr_declare.h

📁 浙江大学的悟空嵌入式系统模拟器
💻 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        Instr_Declare.h
 * @brief       All the instructions' declaration
 * @author      Chenfeng Zhou <ini_autumn@163.com> 
 *
 * Created    : <2005-02-12 11:35:24 by Cheney Chow>
 * Last update: <2005-02-12 12:03:31 by Cheney Chow>
 *
 * $Id: Instr_Declare.h,v 1.1 2005/06/16 06:01:45 qilj Exp $
 */
///==================================================

#ifndef _PPC_INSTR_DECLARE_H_
#define _PPC_INSTR_DECLARE_H_

#include "Instruction.h"
#include "Utils/Logger.h"

namespace PPC
{
	PPC_INSTRUCTION(op_align);
    PPC_INSTRUCTION(op_invalid);
    PPC_INSTRUCTION(op_twi);
	PPC_INSTRUCTION(op_mulli);
	PPC_INSTRUCTION(op_subfic);
	PPC_INSTRUCTION(op_cmpli);
	PPC_INSTRUCTION(op_cmpl);
	PPC_INSTRUCTION(op_cmpi); 
	PPC_INSTRUCTION(op_cmp);
	PPC_INSTRUCTION(op_addic);     
	PPC_INSTRUCTION(op_addic_);    
	PPC_INSTRUCTION(op_addi);      
	PPC_INSTRUCTION(op_addis);
	PPC_INSTRUCTION(op_bcx);
	PPC_INSTRUCTION(op_sc);
	PPC_INSTRUCTION(op_bx);
	PPC_INSTRUCTION(op_rlwimix);
	PPC_INSTRUCTION(op_rlwinmx);
	PPC_INSTRUCTION(op_rlwnmx);

	//! Logical
	PPC_INSTRUCTION(op_ori);
	PPC_INSTRUCTION(op_oris);
	PPC_INSTRUCTION(op_xori);
	PPC_INSTRUCTION(op_xoris);    
	PPC_INSTRUCTION(op_andi_);    
	PPC_INSTRUCTION(op_andis_);   
	PPC_INSTRUCTION(op_andx);  
	PPC_INSTRUCTION(op_andcx); 
	PPC_INSTRUCTION(op_eqvx);
	PPC_INSTRUCTION(op_nandx);
	PPC_INSTRUCTION(op_norx);
	PPC_INSTRUCTION(op_orx);
	PPC_INSTRUCTION(op_orcx);
	PPC_INSTRUCTION(op_xorx);

	PPC_INSTRUCTION(op_lwz);
	PPC_INSTRUCTION(op_lwzu);
	PPC_INSTRUCTION(op_lbz);
	PPC_INSTRUCTION(op_lbzu);
	PPC_INSTRUCTION(op_stw);
	PPC_INSTRUCTION(op_stwu);
	PPC_INSTRUCTION(op_stb);
	PPC_INSTRUCTION(op_stbu);
	PPC_INSTRUCTION(op_lhz);
	PPC_INSTRUCTION(op_lhzu);
	PPC_INSTRUCTION(op_lha);
	PPC_INSTRUCTION(op_lhau);
	PPC_INSTRUCTION(op_sth);
	PPC_INSTRUCTION(op_sthu);
	PPC_INSTRUCTION(op_lmw);
	PPC_INSTRUCTION(op_stmw);
	PPC_INSTRUCTION(op_lfs);
	PPC_INSTRUCTION(op_lfsu);
	PPC_INSTRUCTION(op_lfd);
	PPC_INSTRUCTION(op_lfdu);
	PPC_INSTRUCTION(op_stfs);
	PPC_INSTRUCTION(op_stfsu);
	PPC_INSTRUCTION(op_stfd);
	PPC_INSTRUCTION(op_stfdu);
    PPC_INSTRUCTION(op_addx);
	PPC_INSTRUCTION(op_addcx);
	PPC_INSTRUCTION(op_addex);
	PPC_INSTRUCTION(op_addmex);
	PPC_INSTRUCTION(op_addzex);
	PPC_INSTRUCTION(op_divwx);
	PPC_INSTRUCTION(op_divwux);
	PPC_INSTRUCTION(op_mulhwx);
	PPC_INSTRUCTION(op_mulhwux);
	PPC_INSTRUCTION(op_mullwx);
	PPC_INSTRUCTION(op_negx);
	PPC_INSTRUCTION(op_subfx);
	PPC_INSTRUCTION(op_subfcx);
	PPC_INSTRUCTION(op_subfex);
	PPC_INSTRUCTION(op_subfmex);
	PPC_INSTRUCTION(op_subfzex);
	PPC_INSTRUCTION(op_lbzux);
	PPC_INSTRUCTION(op_lbzx);
	PPC_INSTRUCTION(op_lhaux);
	PPC_INSTRUCTION(op_lhax);
	PPC_INSTRUCTION(op_lhzux);
	PPC_INSTRUCTION(op_lhzx);
	PPC_INSTRUCTION(op_lwzux);
	PPC_INSTRUCTION(op_lwzx);
	PPC_INSTRUCTION(op_stbux);
	PPC_INSTRUCTION(op_stbx);
	PPC_INSTRUCTION(op_sthux);
	PPC_INSTRUCTION(op_sthx);
	PPC_INSTRUCTION(op_stwux);
	PPC_INSTRUCTION(op_stwx);
	PPC_INSTRUCTION(op_lhbrx);
	PPC_INSTRUCTION(op_lwbrx);
	PPC_INSTRUCTION(op_sthbrx);
	PPC_INSTRUCTION(op_stwbrx);
	PPC_INSTRUCTION(op_lswi);
	PPC_INSTRUCTION(op_lswx);
	PPC_INSTRUCTION(op_stswi);
	PPC_INSTRUCTION(op_stswx);
	PPC_INSTRUCTION(op_eieio);
	PPC_INSTRUCTION(op_isync);
	PPC_INSTRUCTION(op_sync);
	PPC_INSTRUCTION(op_lwarx);
	PPC_INSTRUCTION(op_stwcx_);
	PPC_INSTRUCTION(op_bcctrx);
	PPC_INSTRUCTION(op_bclrx);
	PPC_INSTRUCTION(op_rfi);
	PPC_INSTRUCTION(op_tw);
	PPC_INSTRUCTION(op_mcrxr);
	PPC_INSTRUCTION(op_mfcr);
	PPC_INSTRUCTION(op_mfmsr);
	PPC_INSTRUCTION(op_mfspr);
	PPC_INSTRUCTION(op_mftb);
	PPC_INSTRUCTION(op_mtcrf);
	PPC_INSTRUCTION(op_mtmsr);
	PPC_INSTRUCTION(op_mtspr);
	PPC_INSTRUCTION(op_mfsr);
	PPC_INSTRUCTION(op_mfsrin);
	PPC_INSTRUCTION(op_mtsr);
	PPC_INSTRUCTION(op_mtsrin);
	PPC_INSTRUCTION(op_eciwx);
	PPC_INSTRUCTION(op_ecowx);

	//! CR_Logical
	PPC_INSTRUCTION(op_crand);
	PPC_INSTRUCTION(op_crandc);
	PPC_INSTRUCTION(op_creqv);
	PPC_INSTRUCTION(op_crnand);
	PPC_INSTRUCTION(op_crnor);
	PPC_INSTRUCTION(op_cror);
	PPC_INSTRUCTION(op_crorc);
	PPC_INSTRUCTION(op_crxor);
	PPC_INSTRUCTION(op_mcrf);

	//! Shift instructions
	PPC_INSTRUCTION(op_slwx);
	PPC_INSTRUCTION(op_srawx);
	PPC_INSTRUCTION(op_srawix);
	PPC_INSTRUCTION(op_srwx);

	PPC_INSTRUCTION(op_cntlzwx);

	//! Cache management;
	PPC_INSTRUCTION(op_dcbst);
	PPC_INSTRUCTION(op_dcbf);
	PPC_INSTRUCTION(op_dcbtst);
	PPC_INSTRUCTION(op_dcbt);
	PPC_INSTRUCTION(op_dcbi);
	PPC_INSTRUCTION(op_dcbz);

	//! Translation look aside buffer
	PPC_INSTRUCTION(op_tlbie);
	PPC_INSTRUCTION(op_tlbia);
	PPC_INSTRUCTION(op_tlbsx);
	PPC_INSTRUCTION(op_tlbre);
	PPC_INSTRUCTION(op_tlbwe);
	PPC_INSTRUCTION(op_tlbsync);

	//! Load float
	PPC_INSTRUCTION(op_lfsx);
	PPC_INSTRUCTION(op_lfsux);
	PPC_INSTRUCTION(op_lfdx);
	PPC_INSTRUCTION(op_lfdux);

	//! Store float
	PPC_INSTRUCTION(op_stfsx);
	PPC_INSTRUCTION(op_stfsux);
	PPC_INSTRUCTION(op_stfdx);
	PPC_INSTRUCTION(op_stfdux);
	PPC_INSTRUCTION(op_stfiwx);

	PPC_INSTRUCTION(op_icbi);

	PPC_INSTRUCTION(op_extshx);
	PPC_INSTRUCTION(op_extsbx);
} // namespace PPC

#endif  // _PPC_INSTR_DECLARE_H_

⌨️ 快捷键说明

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