summaryrefslogtreecommitdiff
path: root/src/arch/arm/isa/templates
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2010-06-02 12:58:12 -0500
committerGabe Black <gblack@eecs.umich.edu>2010-06-02 12:58:12 -0500
commit1f059541d6160931b3bb80bef842c45c2521d642 (patch)
tree4e4672300be214e5bba318d77cb917e32f69d672 /src/arch/arm/isa/templates
parent6976b4890a307a2d8584b4e512e3f6d728e59ad5 (diff)
downloadgem5-1f059541d6160931b3bb80bef842c45c2521d642.tar.xz
ARM: Add a new RegImmOp base class.
Diffstat (limited to 'src/arch/arm/isa/templates')
-rw-r--r--src/arch/arm/isa/templates/misc.isa20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/arch/arm/isa/templates/misc.isa b/src/arch/arm/isa/templates/misc.isa
index 6f782ba58..87c6e430c 100644
--- a/src/arch/arm/isa/templates/misc.isa
+++ b/src/arch/arm/isa/templates/misc.isa
@@ -118,6 +118,26 @@ def template ImmOpConstructor {{
}
}};
+def template RegImmOpDeclare {{
+class %(class_name)s : public %(base_class)s
+{
+ protected:
+ public:
+ // Constructor
+ %(class_name)s(ExtMachInst machInst, IntRegIndex _dest, uint64_t _imm);
+ %(BasicExecDeclare)s
+};
+}};
+
+def template RegImmOpConstructor {{
+ inline %(class_name)s::%(class_name)s(ExtMachInst machInst,
+ IntRegIndex _dest, uint64_t _imm)
+ : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s, _dest, _imm)
+ {
+ %(constructor)s;
+ }
+}};
+
def template RegRegOpDeclare {{
class %(class_name)s : public %(base_class)s
{