summaryrefslogtreecommitdiff
path: root/src/arch/arm/insts
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2010-06-02 12:58:01 -0500
committerGabe Black <gblack@eecs.umich.edu>2010-06-02 12:58:01 -0500
commit04300e33d49e5697565eb39956849a18ad74ea45 (patch)
treef265420ef4bd8ac8284e03b8437d0c6da0af6728 /src/arch/arm/insts
parentdeb6e8f805e162dd6a33b154e6a635acc0d7c132 (diff)
downloadgem5-04300e33d49e5697565eb39956849a18ad74ea45.tar.xz
ARM: Remove the special naming for the new memory instructions.
These are the only memory instructions now.
Diffstat (limited to 'src/arch/arm/insts')
-rw-r--r--src/arch/arm/insts/mem.cc2
-rw-r--r--src/arch/arm/insts/mem.hh80
2 files changed, 41 insertions, 41 deletions
diff --git a/src/arch/arm/insts/mem.cc b/src/arch/arm/insts/mem.cc
index 4d56b80f8..ea98771e0 100644
--- a/src/arch/arm/insts/mem.cc
+++ b/src/arch/arm/insts/mem.cc
@@ -47,7 +47,7 @@ namespace ArmISA
{
void
-MemoryNew::printInst(std::ostream &os, AddrMode addrMode) const
+Memory::printInst(std::ostream &os, AddrMode addrMode) const
{
printMnemonic(os);
printReg(os, dest);
diff --git a/src/arch/arm/insts/mem.hh b/src/arch/arm/insts/mem.hh
index dd6526fe1..e58005883 100644
--- a/src/arch/arm/insts/mem.hh
+++ b/src/arch/arm/insts/mem.hh
@@ -47,7 +47,7 @@
namespace ArmISA
{
-class MemoryNew : public PredOp
+class Memory : public PredOp
{
public:
enum AddrMode {
@@ -62,8 +62,8 @@ class MemoryNew : public PredOp
IntRegIndex base;
bool add;
- MemoryNew(const char *mnem, ExtMachInst _machInst, OpClass __opClass,
- IntRegIndex _dest, IntRegIndex _base, bool _add)
+ Memory(const char *mnem, ExtMachInst _machInst, OpClass __opClass,
+ IntRegIndex _dest, IntRegIndex _base, bool _add)
: PredOp(mnem, _machInst, __opClass),
dest(_dest), base(_base), add(_add)
{}
@@ -76,14 +76,14 @@ class MemoryNew : public PredOp
};
// The address is a base register plus an immediate.
-class MemoryNewImm : public MemoryNew
+class MemoryImm : public Memory
{
protected:
int32_t imm;
- MemoryNewImm(const char *mnem, ExtMachInst _machInst, OpClass __opClass,
- IntRegIndex _dest, IntRegIndex _base, bool _add, int32_t _imm)
- : MemoryNew(mnem, _machInst, __opClass, _dest, _base, _add), imm(_imm)
+ MemoryImm(const char *mnem, ExtMachInst _machInst, OpClass __opClass,
+ IntRegIndex _dest, IntRegIndex _base, bool _add, int32_t _imm)
+ : Memory(mnem, _machInst, __opClass, _dest, _base, _add), imm(_imm)
{}
void
@@ -97,18 +97,18 @@ class MemoryNewImm : public MemoryNew
};
// The address is a shifted register plus an immediate
-class MemoryNewReg : public MemoryNew
+class MemoryReg : public Memory
{
protected:
int32_t shiftAmt;
ArmShiftType shiftType;
IntRegIndex index;
- MemoryNewReg(const char *mnem, ExtMachInst _machInst, OpClass __opClass,
- IntRegIndex _dest, IntRegIndex _base, bool _add,
- int32_t _shiftAmt, ArmShiftType _shiftType,
- IntRegIndex _index)
- : MemoryNew(mnem, _machInst, __opClass, _dest, _base, _add),
+ MemoryReg(const char *mnem, ExtMachInst _machInst, OpClass __opClass,
+ IntRegIndex _dest, IntRegIndex _base, bool _add,
+ int32_t _shiftAmt, ArmShiftType _shiftType,
+ IntRegIndex _index)
+ : Memory(mnem, _machInst, __opClass, _dest, _base, _add),
shiftAmt(_shiftAmt), shiftType(_shiftType), index(_index)
{}
@@ -150,19 +150,19 @@ class MemoryNewReg : public MemoryNew
};
template<class Base>
-class MemoryNewOffset : public Base
+class MemoryOffset : public Base
{
protected:
- MemoryNewOffset(const char *mnem, ExtMachInst _machInst,
- OpClass __opClass, IntRegIndex _dest, IntRegIndex _base,
- bool _add, int32_t _imm)
+ MemoryOffset(const char *mnem, ExtMachInst _machInst,
+ OpClass __opClass, IntRegIndex _dest, IntRegIndex _base,
+ bool _add, int32_t _imm)
: Base(mnem, _machInst, __opClass, _dest, _base, _add, _imm)
{}
- MemoryNewOffset(const char *mnem, ExtMachInst _machInst,
- OpClass __opClass, IntRegIndex _dest, IntRegIndex _base,
- bool _add, int32_t _shiftAmt, ArmShiftType _shiftType,
- IntRegIndex _index)
+ MemoryOffset(const char *mnem, ExtMachInst _machInst,
+ OpClass __opClass, IntRegIndex _dest, IntRegIndex _base,
+ bool _add, int32_t _shiftAmt, ArmShiftType _shiftType,
+ IntRegIndex _index)
: Base(mnem, _machInst, __opClass, _dest, _base, _add,
_shiftAmt, _shiftType, _index)
{}
@@ -171,25 +171,25 @@ class MemoryNewOffset : public Base
generateDisassembly(Addr pc, const SymbolTable *symtab) const
{
std::stringstream ss;
- this->printInst(ss, MemoryNew::AddrMd_Offset);
+ this->printInst(ss, Memory::AddrMd_Offset);
return ss.str();
}
};
template<class Base>
-class MemoryNewPreIndex : public Base
+class MemoryPreIndex : public Base
{
protected:
- MemoryNewPreIndex(const char *mnem, ExtMachInst _machInst,
- OpClass __opClass, IntRegIndex _dest, IntRegIndex _base,
- bool _add, int32_t _imm)
+ MemoryPreIndex(const char *mnem, ExtMachInst _machInst,
+ OpClass __opClass, IntRegIndex _dest, IntRegIndex _base,
+ bool _add, int32_t _imm)
: Base(mnem, _machInst, __opClass, _dest, _base, _add, _imm)
{}
- MemoryNewPreIndex(const char *mnem, ExtMachInst _machInst,
- OpClass __opClass, IntRegIndex _dest, IntRegIndex _base,
- bool _add, int32_t _shiftAmt, ArmShiftType _shiftType,
- IntRegIndex _index)
+ MemoryPreIndex(const char *mnem, ExtMachInst _machInst,
+ OpClass __opClass, IntRegIndex _dest, IntRegIndex _base,
+ bool _add, int32_t _shiftAmt, ArmShiftType _shiftType,
+ IntRegIndex _index)
: Base(mnem, _machInst, __opClass, _dest, _base, _add,
_shiftAmt, _shiftType, _index)
{}
@@ -198,25 +198,25 @@ class MemoryNewPreIndex : public Base
generateDisassembly(Addr pc, const SymbolTable *symtab) const
{
std::stringstream ss;
- this->printInst(ss, MemoryNew::AddrMd_PreIndex);
+ this->printInst(ss, Memory::AddrMd_PreIndex);
return ss.str();
}
};
template<class Base>
-class MemoryNewPostIndex : public Base
+class MemoryPostIndex : public Base
{
protected:
- MemoryNewPostIndex(const char *mnem, ExtMachInst _machInst,
- OpClass __opClass, IntRegIndex _dest, IntRegIndex _base,
- bool _add, int32_t _imm)
+ MemoryPostIndex(const char *mnem, ExtMachInst _machInst,
+ OpClass __opClass, IntRegIndex _dest, IntRegIndex _base,
+ bool _add, int32_t _imm)
: Base(mnem, _machInst, __opClass, _dest, _base, _add, _imm)
{}
- MemoryNewPostIndex(const char *mnem, ExtMachInst _machInst,
- OpClass __opClass, IntRegIndex _dest, IntRegIndex _base,
- bool _add, int32_t _shiftAmt, ArmShiftType _shiftType,
- IntRegIndex _index)
+ MemoryPostIndex(const char *mnem, ExtMachInst _machInst,
+ OpClass __opClass, IntRegIndex _dest, IntRegIndex _base,
+ bool _add, int32_t _shiftAmt, ArmShiftType _shiftType,
+ IntRegIndex _index)
: Base(mnem, _machInst, __opClass, _dest, _base, _add,
_shiftAmt, _shiftType, _index)
{}
@@ -225,7 +225,7 @@ class MemoryNewPostIndex : public Base
generateDisassembly(Addr pc, const SymbolTable *symtab) const
{
std::stringstream ss;
- this->printInst(ss, MemoryNew::AddrMd_PostIndex);
+ this->printInst(ss, Memory::AddrMd_PostIndex);
return ss.str();
}
};