63c63
< AlphaITB *_itb, AlphaDTB *_dtb,
---
> TheISA::ITB *_itb, TheISA::DTB *_dtb,
65c65
< : ThreadState(_cpu, -1, _thread_num), cpu(_cpu), system(_sys), itb(_itb),
---
> : ThreadState(-1, _thread_num), cpu(_cpu), system(_sys), itb(_itb),
109,110c109,110
< Process *_process, int _asid)
< : ThreadState(_cpu, -1, _thread_num, _process, _asid),
---
> Process *_process, int _asid, MemObject* memobj)
> : ThreadState(-1, _thread_num, _process, _asid, memobj),
112a113,121
> /* 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);
>
121c130
< : ThreadState(NULL, -1, -1)
---
> : ThreadState(-1, -1)
123c132
< : ThreadState(NULL, -1, -1, NULL, -1)
---
> : ThreadState(-1, -1, NULL, -1, NULL)
326,331d334
< #else
< TranslatingPort *
< SimpleThread::getMemPort()
< {
< if (port != NULL)
< return port;
333,345d335
< /* 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;
< }
<