"sparc" -> "mips"
authorKorey Sewell <ksewell@umich.edu>
Thu, 26 Jan 2006 21:19:44 +0000 (16:19 -0500)
committerKorey Sewell <ksewell@umich.edu>
Thu, 26 Jan 2006 21:19:44 +0000 (16:19 -0500)
arch/mips/isa_desc/formats.h:
arch/mips/isa_desc/formats/basic.format:
arch/mips/isa_desc/formats/branch.format:
arch/mips/isa_desc/formats/integerop.format:
arch/mips/isa_desc/formats/mem.format:
arch/mips/isa_desc/formats/noop.format:
arch/mips/isa_desc/formats/trap.format:
arch/mips/isa_traits.cc:
arch/mips/isa_traits.hh:
    changing "sparc" strings to "mips" everywhere

--HG--
extra : convert_revision : eaecf9eeac26e3ef0726deef2fb5d7e9ad172984

arch/mips/isa_desc/formats.h
arch/mips/isa_desc/formats/basic.format
arch/mips/isa_desc/formats/branch.format
arch/mips/isa_desc/formats/integerop.format
arch/mips/isa_desc/formats/mem.format
arch/mips/isa_desc/formats/noop.format
arch/mips/isa_desc/formats/trap.format
arch/mips/isa_traits.cc
arch/mips/isa_traits.hh

index 733a093f55cce1c3c041321c4d5cf8991e2f09e6..404314c7a7e8993f4fc69e8fca18e5d656ee9514 100644 (file)
@@ -1,19 +1,22 @@
 //Include the basic format
 //Templates from this format are used later
-##include "m5/arch/sparc/isa_desc/formats/basic.format"
+##include "m5/arch/mips/isa_desc/formats/basic.format"
 
 //Include the integerOp and integerOpCc format
-##include "m5/arch/sparc/isa_desc/formats/integerop.format"
+##include "m5/arch/mips/isa_desc/formats/integerop.format"
+
+//Include the floatOp format
+##include "m5/arch/mips/isa_desc/formats/floatop.format"
 
 //Include the mem format
-##include "m5/arch/sparc/isa_desc/formats/mem.format"
+##include "m5/arch/mips/isa_desc/formats/mem.format"
 
 //Include the trap format
-##include "m5/arch/sparc/isa_desc/formats/trap.format"
+##include "m5/arch/mips/isa_desc/formats/trap.format"
 
 //Include the branch format
-##include "m5/arch/sparc/isa_desc/formats/branch.format"
+##include "m5/arch/mips/isa_desc/formats/branch.format"
 
 //Include the noop format
-##include "m5/arch/sparc/isa_desc/formats/noop.format"
+##include "m5/arch/mips/isa_desc/formats/noop.format"
 
index 1994df41ceba5319543573cb852976f309a23174..8fba9845a52276a57f1eb0cdbf9990ea0e9cbc29 100644 (file)
@@ -57,7 +57,7 @@ def template BasicDecodeWithMnemonic {{
 
 // The most basic instruction format... used only for a few misc. insts
 def format BasicOperate(code, *flags) {{
-        iop = InstObjParams(name, Name, 'SparcStaticInst', CodeBlock(code), flags)
+        iop = InstObjParams(name, Name, 'MipsStaticInst', CodeBlock(code), flags)
         header_output = BasicDeclare.subst(iop)
         decoder_output = BasicConstructor.subst(iop)
         decode_block = BasicDecode.subst(iop)
index c4c0a90afed87c12bd321eac7f35b7f1d3179749..5327f30e8eecefbdc802ed58f7b6814b26a52129 100644 (file)
@@ -7,12 +7,12 @@ output header {{
         /**
          * Base class for integer operations.
          */
-        class Branch : public SparcStaticInst
+        class Branch : public MipsStaticInst
         {
                 protected:
 
                 /// Constructor
-                Branch(const char *mnem, MachInst _machInst, OpClass __opClass) : SparcStaticInst(mnem, _machInst, __opClass)
+                Branch(const char *mnem, MachInst _machInst, OpClass __opClass) : MipsStaticInst(mnem, _machInst, __opClass)
                 {
                 }
 
@@ -41,7 +41,7 @@ def template BranchExecute {{
                 }
                 //If we have an exception for some reason,
                 //deal with it
-                catch(SparcException except)
+                catch(MipsException except)
                 {
                         //Deal with exception
                         return No_Fault;
@@ -58,7 +58,7 @@ def template BranchExecute {{
 def format Branch(code, *opt_flags) {{
         orig_code = code
         cblk = CodeBlock(code)
-        iop = InstObjParams(name, Name, 'SparcStaticInst', cblk, opt_flags)
+        iop = InstObjParams(name, Name, 'MipsStaticInst', cblk, opt_flags)
         header_output = BasicDeclare.subst(iop)
         decoder_output = BasicConstructor.subst(iop)
         decode_block = BasicDecodeWithMnemonic.subst(iop)
index 275a346d3f5743b3888407484f384f72d4bc1fc7..6fa7feed3d7321b7542b77e15a809c22b52b2df2 100644 (file)
@@ -7,12 +7,12 @@ output header {{
         /**
          * Base class for integer operations.
          */
-        class IntegerOp : public SparcStaticInst
+        class IntegerOp : public MipsStaticInst
         {
                 protected:
 
                 /// Constructor
-                IntegerOp(const char *mnem, MachInst _machInst, OpClass __opClass) : SparcStaticInst(mnem, _machInst, __opClass)
+                IntegerOp(const char *mnem, MachInst _machInst, OpClass __opClass) : MipsStaticInst(mnem, _machInst, __opClass)
                 {
                 }
 
@@ -46,7 +46,7 @@ def template IntegerExecute {{
                 }
                 //If we have an exception for some reason,
                 //deal with it
-                catch(SparcException except)
+                catch(MipsException except)
                 {
                         //Deal with exception
                         return No_Fault;
@@ -82,7 +82,7 @@ def format IntegerOp(code, *opt_flags) {{
         for (marker, value) in (('ivValue', '0'), ('icValue', '0'),
                        ('xvValue', '0'), ('xcValue', '0')):
                 code.replace(marker, value)
-        iop = InstObjParams(name, Name, 'SparcStaticInst', cblk, opt_flags)
+        iop = InstObjParams(name, Name, 'MipsStaticInst', cblk, opt_flags)
         header_output = BasicDeclare.subst(iop)
         decoder_output = BasicConstructor.subst(iop)
         decode_block = BasicDecodeWithMnemonic.subst(iop)
@@ -102,7 +102,7 @@ def format IntegerOpCc(code, icValue, ivValue, xcValue, xvValue, *opt_flags) {{
         for (marker, value) in (('ivValue', ivValue), ('icValue', icValue),
                        ('xvValue', xvValue), ('xcValue', xcValue)):
                 code.replace(marker, value)
-        iop = InstObjParams(name, Name, 'SparcStaticInst', cblk, opt_flags)
+        iop = InstObjParams(name, Name, 'MipsStaticInst', cblk, opt_flags)
         header_output = BasicDeclare.subst(iop)
         decoder_output = BasicConstructor.subst(iop)
         decode_block = BasicDecodeWithMnemonic.subst(iop)
index abc00b6f2765557d0a3ba7b9e7ac07cfac31a546..5ed5237c5f99c103f5cee4e1b639b7b63698e35f 100644 (file)
@@ -7,12 +7,12 @@ output header {{
         /**
          * Base class for integer operations.
          */
-        class Mem : public SparcStaticInst
+        class Mem : public MipsStaticInst
         {
                 protected:
 
                 /// Constructor
-                Mem(const char *mnem, MachInst _machInst, OpClass __opClass) : SparcStaticInst(mnem, _machInst, __opClass)
+                Mem(const char *mnem, MachInst _machInst, OpClass __opClass) : MipsStaticInst(mnem, _machInst, __opClass)
                 {
                 }
 
@@ -41,7 +41,7 @@ def template MemExecute {{
                 }
                 //If we have an exception for some reason,
                 //deal with it
-                catch(SparcException except)
+                catch(MipsException except)
                 {
                         //Deal with exception
                         return No_Fault;
@@ -58,7 +58,7 @@ def template MemExecute {{
 def format Mem(code, *opt_flags) {{
         orig_code = code
         cblk = CodeBlock(code)
-        iop = InstObjParams(name, Name, 'SparcStaticInst', cblk, opt_flags)
+        iop = InstObjParams(name, Name, 'MipsStaticInst', cblk, opt_flags)
         header_output = BasicDeclare.subst(iop)
         decoder_output = BasicConstructor.subst(iop)
         decode_block = BasicDecodeWithMnemonic.subst(iop)
@@ -69,7 +69,7 @@ def format Mem(code, *opt_flags) {{
 def format Cas(code, *opt_flags) {{
         orig_code = code
         cblk = CodeBlock(code)
-        iop = InstObjParams(name, Name, 'SparcStaticInst', cblk, opt_flags)
+        iop = InstObjParams(name, Name, 'MipsStaticInst', cblk, opt_flags)
         header_output = BasicDeclare.subst(iop)
         decoder_output = BasicConstructor.subst(iop)
         decode_block = BasicDecodeWithMnemonic.subst(iop)
index bc83e3261ea2c43fb9de28e6e683da09adb603a6..b1ece654d6e7cd5c858f5025018749dc2f39d80e 100644 (file)
@@ -7,12 +7,12 @@ output header {{
         /**
          * Base class for integer operations.
          */
-        class Noop : public SparcStaticInst
+        class Noop : public MipsStaticInst
         {
                 protected:
 
                 /// Constructor
-                Noop(const char *mnem, MachInst _machInst, OpClass __opClass) : SparcStaticInst(mnem, _machInst, __opClass)
+                Noop(const char *mnem, MachInst _machInst, OpClass __opClass) : MipsStaticInst(mnem, _machInst, __opClass)
                 {
                 }
 
@@ -39,7 +39,7 @@ def template NoopExecute {{
 def format Noop(code, *opt_flags) {{
         orig_code = code
         cblk = CodeBlock(code)
-        iop = InstObjParams(name, Name, 'SparcStaticInst', cblk, opt_flags)
+        iop = InstObjParams(name, Name, 'MipsStaticInst', cblk, opt_flags)
         header_output = BasicDeclare.subst(iop)
         decoder_output = BasicConstructor.subst(iop)
         decode_block = BasicDecodeWithMnemonic.subst(iop)
index bee77fe69cf9a3755a97544af923f2a977cd7895..78f8d87b0863f2fa1d0f6997e51c47c48fe852cb 100644 (file)
@@ -7,12 +7,12 @@ output header {{
         /**
          * Base class for integer operations.
          */
-        class Trap : public SparcStaticInst
+        class Trap : public MipsStaticInst
         {
                 protected:
 
                 /// Constructor
-                Trap(const char *mnem, MachInst _machInst, OpClass __opClass) : SparcStaticInst(mnem, _machInst, __opClass)
+                Trap(const char *mnem, MachInst _machInst, OpClass __opClass) : MipsStaticInst(mnem, _machInst, __opClass)
                 {
                 }
 
@@ -45,7 +45,7 @@ def template TrapExecute {{
 def format Trap(code, *opt_flags) {{
         orig_code = code
         cblk = CodeBlock(code)
-        iop = InstObjParams(name, Name, 'SparcStaticInst', cblk, opt_flags)
+        iop = InstObjParams(name, Name, 'MipsStaticInst', cblk, opt_flags)
         header_output = BasicDeclare.subst(iop)
         decoder_output = BasicConstructor.subst(iop)
         decode_block = BasicDecodeWithMnemonic.subst(iop)
index c7a25f88dda0735ad54fae5ae417ab8a328261b9..90a85feb6e06602966af55334bb8cf674d529ab3 100644 (file)
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include "arch/sparc/isa_traits.hh"
+#include "arch/mips/isa_traits.hh"
 #include "cpu/static_inst.hh"
 #include "sim/serialize.hh"
 
 // Alpha UNOP (ldq_u r31,0(r0))
-const MachInst SPARCISA::NoopMachInst = 0x2ffe0000;
+// @todo: fix to MIPS specific
+const MachInst MipsISA::NoopMachInst = 0x2ffe0000;
 
 void
-SPARCISA::RegFile::serialize(std::ostream &os)
+MipsISA::RegFile::serialize(std::ostream &os)
 {
     intRegFile.serialize(os);
     floatRegFile.serialize(os);
@@ -45,7 +46,7 @@ SPARCISA::RegFile::serialize(std::ostream &os)
 
 
 void
-AlphaISA::RegFile::unserialize(Checkpoint *cp, const std::string &section)
+MipsISA::RegFile::unserialize(Checkpoint *cp, const std::string &section)
 {
     intRegFile.unserialize(cp, section);
     floatRegFile.unserialize(cp, section);
index 9513b99fc3897afa857da563fd10b256f076935b..e8401cefb9bf067a63f1b9997b76bc9e30cfb61d 100644 (file)
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef __ARCH_SPARC_ISA_TRAITS_HH__
-#define __ARCH_SPARC_ISA_TRAITS_HH__
+#ifndef __ARCH_MIPS_ISA_TRAITS_HH__
+#define __ARCH_MIPS_ISA_TRAITS_HH__
 
-#include "arch/sparc/faults.hh"
+#include "arch/mips/faults.hh"
 #include "base/misc.hh"
 #include "sim/host.hh"
 
 class FastCPU;
-//class FullCPU;
-//class Checkpoint;
+class FullCPU;
+class Checkpoint;
 
-#define TARGET_SPARC
+#define TARGET_MIPS
 
 template <class ISA> class StaticInst;
 template <class ISA> class StaticInstPtr;
@@ -48,7 +48,7 @@ template <class ISA> class StaticInstPtr;
 //     int ITB_ASN_ASN(uint64_t reg);
 //}
 
-class SPARCISA
+class MipsISA
 {
         public:
 
@@ -463,7 +463,7 @@ class SPARCISA
 };
 
 
-typedef SPARCISA TheISA;
+typedef MIPSISA TheISA;
 
 typedef TheISA::MachInst MachInst;
 typedef TheISA::Addr Addr;
@@ -525,4 +525,4 @@ class SyscallReturn {
 #include "arch/alpha/ev5.hh"
 #endif
 
-#endif // __ARCH_SPARC_ISA_TRAITS_HH__
+#endif // __ARCH_MIPS_ISA_TRAITS_HH__