{
public:
MemoryVector();
- MemoryVector(uint32 size);
+ MemoryVector(uint64 size);
~MemoryVector();
friend class DirectoryMemory;
- void resize(uint32 size); // destructive
+ void resize(uint64 size); // destructive
void write(const Address & paddr, uint8* data, int len);
uint8* read(const Address & paddr, uint8* data, int len);
private:
uint8* getBlockPtr(const PhysAddress & addr);
- uint32 m_size;
+ uint64 m_size;
uint8** m_pages;
uint32 m_num_pages;
const uint32 m_page_offset_mask;
}
inline
-MemoryVector::MemoryVector(uint32 size)
+MemoryVector::MemoryVector(uint64 size)
: m_page_offset_mask(4095)
{
resize(size);
}
inline void
-MemoryVector::resize(uint32 size)
+MemoryVector::resize(uint64 size)
{
if (m_pages != NULL){
for (int i = 0; i < m_num_pages; i++) {