Difference between revisions of "Defining ISAs (as of M5 2.0 beta 3)"

From gem5
Jump to: navigation, search
Line 7: Line 7:
  
 
Your new ISA description, MyISA, will need to generate correct instructions for the different CPU models. More specifically, your MyISA description will allow your MyISA
 
Your new ISA description, MyISA, will need to generate correct instructions for the different CPU models. More specifically, your MyISA description will allow your MyISA
architecture (analagous to ALPHA,MIPS,SPARC,etc.) to be plugged into System Call and Full-System simulations of any M5 CPU Model.
+
architecture (analagous to ALPHA,MIPS,SPARC,etc.) to be plugged into System-Call Emulation (SE) and Full-System (FS) simulations of any M5 CPU Model.
  
 
== Creating the Files for MyISA ==
 
== Creating the Files for MyISA ==
Line 22: Line 22:
 
== MyISA Decoder - src/arch/MyISA/decoder.isa ==
 
== MyISA Decoder - src/arch/MyISA/decoder.isa ==
  
 
+
'''Now Build Your Decoder:'''
'''Now Test Your Decoder:'''
 
 
<pre>
 
<pre>
 
scons build/MYISA_SE/arch/MyISA/atomic_simple_cpu_exec.cc CPU_MODELS=AtomicSimpleCPU
 
scons build/MYISA_SE/arch/MyISA/atomic_simple_cpu_exec.cc CPU_MODELS=AtomicSimpleCPU
 
</pre>
 
</pre>
 +
 +
== Testing MyISA ==
 +
 +
== Full-System MyISA ==

Revision as of 19:29, 23 May 2007

  • NOTE: THIS PAGE IS UNDER CONSTRUCTION. HOPE TO FINISH SOON!!!

Overview

First, make sure you have basic understanding of the ISA description objects within the M5 framework. A good start is the The M5 ISA description language page.

For this example, we will be constructing an ISA called MyISA which will just be a renamed version of the MIPS ISA. We will go through the steps of creating the files and configuration opions for an M5 ISA description.

Your new ISA description, MyISA, will need to generate correct instructions for the different CPU models. More specifically, your MyISA description will allow your MyISA architecture (analagous to ALPHA,MIPS,SPARC,etc.) to be plugged into System-Call Emulation (SE) and Full-System (FS) simulations of any M5 CPU Model.

Creating the Files for MyISA

Making M5 Recognize MyISA

MyISA Architecture - src/arch/MyISA/isa_traits.hh

MyISA Formats & Templates - src/arch/MyISA/formats/*.isa

MyISA Decoder - src/arch/MyISA/decoder.isa

Now Build Your Decoder:

scons build/MYISA_SE/arch/MyISA/atomic_simple_cpu_exec.cc CPU_MODELS=AtomicSimpleCPU

Testing MyISA

Full-System MyISA