TD3:I5 put PageProvider in the right place
This commit is contained in:
parent
469c62ee82
commit
7deeec90f1
4 changed files with 13 additions and 10 deletions
|
@ -61,11 +61,7 @@ Machine::Machine(bool debug)
|
|||
mainMemory = new char[MemorySize];
|
||||
for (i = 0; i < MemorySize; i++)
|
||||
mainMemory[i] = 0;
|
||||
#ifdef CHANGED
|
||||
pageProvider = new PageProvider((int)(MemorySize/PageSize));
|
||||
#endif
|
||||
DEBUG ('a', "Allocated page: %i\n", page);
|
||||
#ifdef USE_TLB
|
||||
#ifdef USE_TLB
|
||||
tlb = new TranslationEntry[TLBSize];
|
||||
for (i = 0; i < TLBSize; i++)
|
||||
tlb[i].valid = FALSE;
|
||||
|
|
|
@ -205,9 +205,6 @@ class Machine:public dontcopythis {
|
|||
|
||||
TranslationEntry *currentPageTable;
|
||||
unsigned int currentPageTableSize;
|
||||
#ifdef CHANGED
|
||||
PageProvider * pageProvider;
|
||||
#endif // CHANGED
|
||||
private:
|
||||
bool singleStep; // drop back into the debugger after each
|
||||
// simulated instruction
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue