mips-shadowsets: fix calcuations. \n Remove Shadowsets from Int & Arch. Reg Calculations
This commit is contained in:
parent
14808ecac9
commit
cc9e834e93
2 changed files with 7 additions and 4 deletions
|
@ -177,12 +177,10 @@ namespace MipsISA
|
||||||
const int NumFloatArchRegs = 32;
|
const int NumFloatArchRegs = 32;
|
||||||
const int NumFloatSpecialRegs = 5;
|
const int NumFloatSpecialRegs = 5;
|
||||||
|
|
||||||
const int NumShadowRegSets = 16; // Maximum number of shadow register sets
|
const int MaxShadowRegSets = 16; // Maximum number of shadow register sets
|
||||||
const int NumIntRegs = NumIntArchRegs*NumShadowRegSets + NumIntSpecialRegs; //HI & LO Regs
|
const int NumIntRegs = NumIntArchRegs + NumIntSpecialRegs; //HI & LO Regs
|
||||||
const int NumFloatRegs = NumFloatArchRegs + NumFloatSpecialRegs;//
|
const int NumFloatRegs = NumFloatArchRegs + NumFloatSpecialRegs;//
|
||||||
|
|
||||||
const int TotalArchRegs = NumIntArchRegs * NumShadowRegSets;
|
|
||||||
|
|
||||||
// Static instruction parameters
|
// Static instruction parameters
|
||||||
const int MaxInstSrcRegs = 10;
|
const int MaxInstSrcRegs = 10;
|
||||||
const int MaxInstDestRegs = 8;
|
const int MaxInstDestRegs = 8;
|
||||||
|
|
|
@ -60,6 +60,11 @@ namespace MipsISA
|
||||||
DSPHi0 = HI
|
DSPHi0 = HI
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//@TODO: Implementing ShadowSets needs to
|
||||||
|
//edit this value such that:
|
||||||
|
//TotalArchRegs = NumIntArchRegs * ShadowSets
|
||||||
|
const int TotalArchRegs = NumIntArchRegs;
|
||||||
|
|
||||||
class IntRegFile
|
class IntRegFile
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
Loading…
Reference in a new issue