Added an execute function to the macro op so it can be instantiated.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 16 Oct 2006 00:54:35 +0000 (20:54 -0400)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 16 Oct 2006 00:54:35 +0000 (20:54 -0400)
--HG--
extra : convert_revision : 89dd46f5bbac966e6eb4f6f747419fa1d344eb87

src/arch/sparc/isa/formats/basic.isa
src/arch/sparc/isa/formats/micro.isa

index db77b1a1579f28801d25e55394219aea2596f2fb..042201de40b0269f0f3914289f3723683f97b8ec 100644 (file)
@@ -33,6 +33,14 @@ def template BasicExecDeclare {{
         Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const;
 }};
 
+// Definitions of execute methods that panic.
+def template BasicExecPanic {{
+        Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const
+        {
+            panic("Execute method called when it shouldn't!");
+        }
+}};
+
 // Basic instruction class declaration template.
 def template BasicDeclare {{
         /**
index 867179cfd262b6104104f1b92c3f3d1fcc839ae5..320603a6a76d038c307bbee3696b4c91dce639ce 100644 (file)
@@ -59,6 +59,8 @@ output header {{
                 assert(microPC < numMicroOps);
                 return microOps[microPC];
             }
+
+            %(BasicExecPanic)s
         };
 
         class SparcMicroInst : public SparcStaticInst