From 0abec5356427798568cc0008add4a4038443c548 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 2 Jun 2010 12:58:18 -0500 Subject: ARM: Move the longer MemoryReg::printoffset function in mem.hh into the cc file. --- src/arch/arm/insts/mem.hh | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) (limited to 'src/arch/arm/insts/mem.hh') diff --git a/src/arch/arm/insts/mem.hh b/src/arch/arm/insts/mem.hh index 50f718b99..609afa9aa 100644 --- a/src/arch/arm/insts/mem.hh +++ b/src/arch/arm/insts/mem.hh @@ -246,41 +246,7 @@ class MemoryReg : public Memory shiftAmt(_shiftAmt), shiftType(_shiftType), index(_index) {} - void - printOffset(std::ostream &os) const - { - if (!add) - os << "-"; - printReg(os, index); - if (shiftType != LSL || shiftAmt != 0) { - switch (shiftType) { - case LSL: - ccprintf(os, " LSL #%d", shiftAmt); - break; - case LSR: - if (shiftAmt == 0) { - ccprintf(os, " LSR #%d", 32); - } else { - ccprintf(os, " LSR #%d", shiftAmt); - } - break; - case ASR: - if (shiftAmt == 0) { - ccprintf(os, " ASR #%d", 32); - } else { - ccprintf(os, " ASR #%d", shiftAmt); - } - break; - case ROR: - if (shiftAmt == 0) { - ccprintf(os, " RRX"); - } else { - ccprintf(os, " ROR #%d", shiftAmt); - } - break; - } - } - } + void printOffset(std::ostream &os) const; }; class MemoryDReg : public MemoryReg -- cgit v1.2.3