65c65
< : ThreadState(-1, _thread_num), cpu(_cpu), system(_sys), itb(_itb),
---
> : ThreadState(_cpu, -1, _thread_num), cpu(_cpu), system(_sys), itb(_itb),
109,110c109,110
< Process *_process, int _asid, MemObject* memobj)
< : ThreadState(-1, _thread_num, _process, _asid, memobj),
---
> Process *_process, int _asid)
> : ThreadState(_cpu, -1, _thread_num, _process, _asid),
113,121d112
< /* Use this port to for syscall emulation writes to memory. */
< Port *mem_port;
< port = new TranslatingPort(csprintf("%s-%d-funcport",
< cpu->name(), tid),
< process->pTable, false);
< mem_port = memobj->getPort("functional");
< mem_port->setPeer(port);
< port->setPeer(mem_port);
<
130c121
< : ThreadState(-1, -1)
---
> : ThreadState(NULL, -1, -1)
132c123
< : ThreadState(-1, -1, NULL, -1, NULL)
---
> : ThreadState(NULL, -1, -1, NULL, -1)
334a326,331
> #else
> TranslatingPort *
> SimpleThread::getMemPort()
> {
> if (port != NULL)
> return port;
335a333,345
> /* Use this port to for syscall emulation writes to memory. */
> Port *dcache_port;
> port = new TranslatingPort(csprintf("%s-%d-funcport",
> cpu->name(), tid),
> process->pTable, false);
> dcache_port = cpu->getPort("dcache_port");
> assert(dcache_port != NULL);
> dcache_port = dcache_port->getPeer();
> // mem_port->setPeer(port);
> port->setPeer(dcache_port);
> return port;
> }
>