arch-x86: Get rid of the now unused print(Src|Dest)Reg methods.

These would extract particular numbered source or destination registers
from an instruction and feed them into a printReg method. Now that the
register operands know how to print themselves with printReg directly,
these methods are no longer used.

Change-Id: I4244cb2ee97015f51f4783f377282e2a1db5d69b
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/42363
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Gabe Black
2021-03-06 00:12:37 -08:00
parent b5b123afa6
commit 855fa77c3d
2 changed files with 0 additions and 16 deletions

View File

@@ -105,20 +105,6 @@ void X86StaticInst::printSegment(std::ostream &os, int segment)
}
}
void
X86StaticInst::printSrcReg(std::ostream &os, int reg, int size) const
{
if (_numSrcRegs > reg)
printReg(os, srcRegIdx(reg), size);
}
void
X86StaticInst::printDestReg(std::ostream &os, int reg, int size) const
{
if (_numDestRegs > reg)
printReg(os, destRegIdx(reg), size);
}
void
X86StaticInst::divideStep(uint64_t dividend, uint64_t divisor,
uint64_t &quotient, uint64_t &remainder)

View File

@@ -118,8 +118,6 @@ class X86StaticInst : public StaticInst
std::string generateDisassembly(
Addr pc, const Loader::SymbolTable *symtab) const override;
void printSrcReg(std::ostream &os, int reg, int size) const;
void printDestReg(std::ostream &os, int reg, int size) const;
static void divideStep(uint64_t divident, uint64_t divisor,
uint64_t &quotient, uint64_t &remainder);