summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-10-15 20:54:35 -0400
committerGabe Black <gblack@eecs.umich.edu>2006-10-15 20:54:35 -0400
commitdc7d9af582a192f5a50fcbc72073e7aab1a57097 (patch)
treed15f5a1539264bc31eeb8164e5f170282627bdc1 /src
parent7009d0e52339036e1b282b15a29e71863ada020c (diff)
downloadgem5-dc7d9af582a192f5a50fcbc72073e7aab1a57097.tar.xz
Added an execute function to the macro op so it can be instantiated.
--HG-- extra : convert_revision : 89dd46f5bbac966e6eb4f6f747419fa1d344eb87
Diffstat (limited to 'src')
-rw-r--r--src/arch/sparc/isa/formats/basic.isa8
-rw-r--r--src/arch/sparc/isa/formats/micro.isa2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/arch/sparc/isa/formats/basic.isa b/src/arch/sparc/isa/formats/basic.isa
index db77b1a15..042201de4 100644
--- a/src/arch/sparc/isa/formats/basic.isa
+++ b/src/arch/sparc/isa/formats/basic.isa
@@ -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 {{
/**
diff --git a/src/arch/sparc/isa/formats/micro.isa b/src/arch/sparc/isa/formats/micro.isa
index 867179cfd..320603a6a 100644
--- a/src/arch/sparc/isa/formats/micro.isa
+++ b/src/arch/sparc/isa/formats/micro.isa
@@ -59,6 +59,8 @@ output header {{
assert(microPC < numMicroOps);
return microOps[microPC];
}
+
+ %(BasicExecPanic)s
};
class SparcMicroInst : public SparcStaticInst