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 | cb2e3b0acedbad6b35c0b2a56141399cf4d1c522 (patch) | |
tree | df2196eb78a542fd2c01a42ef37313d22ee20cdf /src/arch/arm/isa/templates | |
parent | a1208aa66d04994d3b1d8b2dc703dbb95fe0c98c (diff) | |
download | gem5-cb2e3b0acedbad6b35c0b2a56141399cf4d1c522.tar.xz |
ARM: Generalize the saturation instruction bases for use in other instructions.
Diffstat (limited to 'src/arch/arm/isa/templates')
-rw-r--r-- | src/arch/arm/isa/templates/misc.isa | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/arch/arm/isa/templates/misc.isa b/src/arch/arm/isa/templates/misc.isa index 82e9aeab7..ec660c5a1 100644 --- a/src/arch/arm/isa/templates/misc.isa +++ b/src/arch/arm/isa/templates/misc.isa @@ -120,52 +120,52 @@ def template RevOpConstructor {{ } }}; -def template SatOpDeclare {{ +def template RegImmRegOpDeclare {{ class %(class_name)s : public %(base_class)s { protected: public: // Constructor %(class_name)s(ExtMachInst machInst, - IntRegIndex _dest, uint32_t _satImm, IntRegIndex _op1); + IntRegIndex _dest, uint32_t _imm, IntRegIndex _op1); %(BasicExecDeclare)s }; }}; -def template SatOpConstructor {{ +def template RegImmRegOpConstructor {{ inline %(class_name)s::%(class_name)s(ExtMachInst machInst, IntRegIndex _dest, - uint32_t _satImm, + uint32_t _imm, IntRegIndex _op1) : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s, - _dest, _satImm, _op1) + _dest, _imm, _op1) { %(constructor)s; } }}; -def template SatShiftOpDeclare {{ +def template RegImmRegShiftOpDeclare {{ class %(class_name)s : public %(base_class)s { protected: public: // Constructor %(class_name)s(ExtMachInst machInst, - IntRegIndex _dest, uint32_t _satImm, IntRegIndex _op1, + IntRegIndex _dest, uint32_t _imm, IntRegIndex _op1, int32_t _shiftAmt, ArmShiftType _shiftType); %(BasicExecDeclare)s }; }}; -def template SatShiftOpConstructor {{ +def template RegImmRegShiftOpConstructor {{ inline %(class_name)s::%(class_name)s(ExtMachInst machInst, IntRegIndex _dest, - uint32_t _satImm, + uint32_t _imm, IntRegIndex _op1, int32_t _shiftAmt, ArmShiftType _shiftType) : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s, - _dest, _satImm, _op1, _shiftAmt, _shiftType) + _dest, _imm, _op1, _shiftAmt, _shiftType) { %(constructor)s; } |