diff options
Diffstat (limited to 'src/arch/mips/isa')
-rw-r--r-- | src/arch/mips/isa/base.isa | 6 | ||||
-rw-r--r-- | src/arch/mips/isa/formats/int.isa | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/arch/mips/isa/base.isa b/src/arch/mips/isa/base.isa index c0f259666..946dce6df 100644 --- a/src/arch/mips/isa/base.isa +++ b/src/arch/mips/isa/base.isa @@ -72,11 +72,11 @@ output decoder {{ void MipsStaticInst::printReg(std::ostream &os, RegId reg) const { - if (reg.regClass == IntRegClass) { - ccprintf(os, "r%d", reg.regIdx); + if (reg.isIntReg()) { + ccprintf(os, "r%d", reg.index()); } else { - ccprintf(os, "f%d", reg.regIdx); + ccprintf(os, "f%d", reg.index()); } } diff --git a/src/arch/mips/isa/formats/int.isa b/src/arch/mips/isa/formats/int.isa index 641608e89..c21c1255b 100644 --- a/src/arch/mips/isa/formats/int.isa +++ b/src/arch/mips/isa/formats/int.isa @@ -257,9 +257,9 @@ output decoder {{ ccprintf(ss, "%-10s ", mnemonic); - if (_numDestRegs > 0 && _destRegIdx[0].regIdx < 32) { + if (_numDestRegs > 0 && _destRegIdx[0].index() < 32) { printReg(ss, _destRegIdx[0]); - } else if (_numSrcRegs > 0 && _srcRegIdx[0].regIdx < 32) { + } else if (_numSrcRegs > 0 && _srcRegIdx[0].index() < 32) { printReg(ss, _srcRegIdx[0]); } @@ -272,9 +272,9 @@ output decoder {{ ccprintf(ss, "%-10s ", mnemonic); - if (_numDestRegs > 0 && _destRegIdx[0].regIdx < 32) { + if (_numDestRegs > 0 && _destRegIdx[0].index() < 32) { printReg(ss, _destRegIdx[0]); - } else if (_numSrcRegs > 0 && _srcRegIdx[0].regIdx < 32) { + } else if (_numSrcRegs > 0 && _srcRegIdx[0].index() < 32) { printReg(ss, _srcRegIdx[0]); } @@ -287,9 +287,9 @@ output decoder {{ ccprintf(ss, "%-10s ", mnemonic); - if (_numDestRegs > 0 && _destRegIdx[0].regIdx < 32) { + if (_numDestRegs > 0 && _destRegIdx[0].index() < 32) { printReg(ss, _destRegIdx[0]); - } else if (_numSrcRegs > 0 && _srcRegIdx[0].regIdx < 32) { + } else if (_numSrcRegs > 0 && _srcRegIdx[0].index() < 32) { printReg(ss, _srcRegIdx[0]); } |