SPARC: Get rid of flattenIndex in the int register file.
This commit is contained in:
parent
ce2e50a64c
commit
c1c61d52a0
|
@ -51,14 +51,6 @@ string SparcISA::getIntRegName(RegIndex index)
|
||||||
return intRegName[index];
|
return intRegName[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
int IntRegFile::flattenIndex(int reg)
|
|
||||||
{
|
|
||||||
int flatIndex = offset[reg >> FrameOffsetBits]
|
|
||||||
| (reg & FrameOffsetMask);
|
|
||||||
DPRINTF(RegisterWindows, "Flattened index %d into %d.\n", reg, flatIndex);
|
|
||||||
return flatIndex;
|
|
||||||
}
|
|
||||||
|
|
||||||
void IntRegFile::clear()
|
void IntRegFile::clear()
|
||||||
{
|
{
|
||||||
int x;
|
int x;
|
||||||
|
|
|
@ -87,8 +87,6 @@ namespace SparcISA
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
int flattenIndex(int reg);
|
|
||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
IntRegFile();
|
IntRegFile();
|
||||||
|
|
Loading…
Reference in a new issue