84d83
< memPtr = NULL;
97d95
< memPtr = mem;
98a97
> memPtr = mem;
105,114d103
< #else
< if (systemPtr) {
< thread = new SimpleThread(this, 0, systemPtr, itb, dtb, memPtr, false);
<
< thread->setStatus(ThreadContext::Suspended);
< tc = thread->getTC();
< threadContexts.push_back(tc);
< delete thread->kernelStats;
< thread->kernelStats = NULL;
< }
118d106
< #if FULL_SYSTEM
121a110
> #if FULL_SYSTEM
124,125c113
< if (memPtr) {
< thread = new SimpleThread(this, 0, systemPtr, itb, dtb, memPtr, false);
---
> thread = new SimpleThread(this, 0, systemPtr, itb, dtb, false);
127,133c115,119
< thread->setStatus(ThreadContext::Suspended);
< tc = thread->getTC();
< threadContexts.push_back(tc);
< delete thread->kernelStats;
< thread->kernelStats = NULL;
< }
< }
---
> thread->setStatus(ThreadContext::Suspended);
> tc = thread->getTC();
> threadContexts.push_back(tc);
> delete thread->kernelStats;
> thread->kernelStats = NULL;
134a121
> }
353c340
< return vtophys(xcProxy, addr);
---
> return vtophys(tc, addr);
604c591
< fault->invoke(xcProxy);
---
> fault->invoke(tc);
633c620
< system->pcEventQueue.service(xcProxy);
---
> system->pcEventQueue.service(tc);