[gem5-users] thread migration

2014-09-18 Thread sanem.arslan via gem5-users
Hello, I am working on migrating application threads from one core to another on gem5. I have implemented a pseudo-instruction to trigger thread migration. When an application thread calls this pseudo-instruction, I want to migrate the thread to another cpu. My problem is that I cannot migrate

Re: [gem5-users] thread migration

2014-09-20 Thread sanem.arslan via gem5-users
Hello again, I give up to use drain() and switchOut() functions since I only seek for migrate anapplication thread from one core to another without any change on cpu type. So I updated my pseudo-instruction like that: void my_func(ThreadContext *tc) { BaseCPU *oldcpu = tc->getCpuPtr(); Syst

[gem5-users] ThreadContext / takeOverFrom() function

2014-10-01 Thread sanem.arslan via gem5-users
Hello, My aim is to copy the context of a thread to another thread which runs on different cpu. According to the definition of takeOverFrom() in gem5/src/cpu/thread_context.cc, we can copy thread contexts: /** * Copy state between thread contexts in preparation for CPU handover. * * @note