摘要:
用软件编程的方法介绍一个与MIPS32/64指令集兼容的指令集模拟器的建模与实现过程。该方案用C++来描述处理器的硬件行为,通过在编译时选择不同的选项分别实现对MIPS32和MIPS64指令集构架的嵌入式处理器的模拟,实现除浮点数以外的所有指令的译码和执行。该方案的主要好处是代码可重用,指令扩展性能好,可以同时兼容MIPS32和MIPS64指令集的模拟。
关键词:
MIPS64指令集,
令集模拟器,
令集构架
Abstract:
This paper introduces a modeling and implementation procedure for a MIPS32/64 instruction set simulator using software programming method. It simulates the CPU hardware behavior using C++ program language. By choosing different option during the compile time, it can respectively simulate embedded processor MIPS32 and MIPS64 instruction set architecture, and it can decode and execute all the commands except float point commands. The main benefit of this method is that the code is reusable and has a good performance for extending commands.
Key words:
MIPS64 instruction set,
instruction set simulator,
instruction set architecture
中图分类号:
蔡启先, 刘明, 余祖峰. MIPS64指令集模拟器的建模与实现方法[J]. 计算机工程, 2010, 36(18): 245-246.
CA Qi-Xian, LIU Meng, TU Jie-Feng. Modeling and Implementation Method for MIPS64 Instruction Set Simulator[J]. Computer Engineering, 2010, 36(18): 245-246.