If you have one thread per CPU, then there's really no "switching" to be done. I'm not clear on what you're trying to do, but would simply stalling and restarting the CPUs at different times achieve your goals? All that requires is controlling when the tick events on the CPU objects get scheduled.
Steve On Wed, Jun 12, 2013 at 12:50 PM, Yanqi Zhou <yan...@princeton.edu> wrote: > Hi Steve, > I am running full system mode. Threads are on different CPUs. For instance > I allocate 4 CPUs for 4-thread programs. > Thanks, > Yanqi > ------------------------------ > *From:* gem5-users-boun...@gem5.org [gem5-users-boun...@gem5.org] on > behalf of Steve Reinhardt [ste...@gmail.com] > *Sent:* Wednesday, June 12, 2013 3:43 PM > *To:* gem5 users mailing list > *Subject:* Re: [gem5-users] Thread switch > > Hi Yanqi, > > It's hard to answer your question without more information about your > situation. For example, are you running in full system mode or syscall > emulation mode? Are you talking about threads on the same CPU, or on > different CPUs? > > Steve > > > > On Tue, Jun 11, 2013 at 5:22 PM, Yanqi Zhou <yan...@princeton.edu> wrote: > >> Hey everyone, >> Do anyone know how to force a thread switch when running multithreaded >> benchmark, such as PARSEC? I am not a good hacker, and cannot figure out a >> way... >> I appreciate any suggestion. >> Yanqi >> >> _______________________________________________ >> gem5-users mailing list >> gem5-users@gem5.org >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > > > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users