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:
@@ -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 "ient, uint64_t &remainder)
|
||||
|
||||
@@ -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 "ient, uint64_t &remainder);
|
||||
|
||||
Reference in New Issue
Block a user