x86: added page size in bytes tlb entry function
This commit is contained in:
parent
5931087dcd
commit
8c18f6da9e
|
@ -118,6 +118,12 @@ namespace X86ISA
|
||||||
return paddr;
|
return paddr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Return the page size in bytes
|
||||||
|
int size()
|
||||||
|
{
|
||||||
|
return (1 << logBytes);
|
||||||
|
}
|
||||||
|
|
||||||
void serialize(std::ostream &os);
|
void serialize(std::ostream &os);
|
||||||
void unserialize(Checkpoint *cp, const std::string §ion);
|
void unserialize(Checkpoint *cp, const std::string §ion);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue