From 1f059541d6160931b3bb80bef842c45c2521d642 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 2 Jun 2010 12:58:12 -0500 Subject: ARM: Add a new RegImmOp base class. --- src/arch/arm/insts/misc.hh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/arch/arm/insts/misc.hh') diff --git a/src/arch/arm/insts/misc.hh b/src/arch/arm/insts/misc.hh index 53281400e..6d78b311a 100644 --- a/src/arch/arm/insts/misc.hh +++ b/src/arch/arm/insts/misc.hh @@ -107,6 +107,20 @@ class ImmOp : public PredOp std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const; }; +class RegImmOp : public PredOp +{ + protected: + IntRegIndex dest; + uint64_t imm; + + RegImmOp(const char *mnem, ExtMachInst _machInst, OpClass __opClass, + IntRegIndex _dest, uint64_t _imm) : + PredOp(mnem, _machInst, __opClass), dest(_dest), imm(_imm) + {} + + std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const; +}; + class RegRegOp : public PredOp { protected: -- cgit v1.2.3