diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2010-06-02 12:58:07 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2010-06-02 12:58:07 -0500 |
commit | 554fb3774e638c9a6e7ce4b10a6da6d795a29206 (patch) | |
tree | 4d4e5030537888a555d8ed682012db491f413a27 /src/arch/arm/isa/templates | |
parent | cb2e3b0acedbad6b35c0b2a56141399cf4d1c522 (diff) | |
download | gem5-554fb3774e638c9a6e7ce4b10a6da6d795a29206.tar.xz |
ARM: Add a base class for extend and add instructions.
Diffstat (limited to 'src/arch/arm/isa/templates')
-rw-r--r-- | src/arch/arm/isa/templates/misc.isa | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/arch/arm/isa/templates/misc.isa b/src/arch/arm/isa/templates/misc.isa index ec660c5a1..3b4c6a6f8 100644 --- a/src/arch/arm/isa/templates/misc.isa +++ b/src/arch/arm/isa/templates/misc.isa @@ -120,6 +120,32 @@ def template RevOpConstructor {{ } }}; +def template RegRegRegImmOpDeclare {{ +class %(class_name)s : public %(base_class)s +{ + protected: + public: + // Constructor + %(class_name)s(ExtMachInst machInst, + IntRegIndex _dest, IntRegIndex _op1, IntRegIndex _op2, + uint32_t _imm); + %(BasicExecDeclare)s +}; +}}; + +def template RegRegRegImmOpConstructor {{ + inline %(class_name)s::%(class_name)s(ExtMachInst machInst, + IntRegIndex _dest, + IntRegIndex _op1, + IntRegIndex _op2, + uint32_t _imm) + : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s, + _dest, _op1, _op2, _imm) + { + %(constructor)s; + } +}}; + def template RegImmRegOpDeclare {{ class %(class_name)s : public %(base_class)s { |