On Tue, Sep 1, 2009 at 1:52 PM, Gabriel Michael Black<[email protected]> wrote: >> So, in SE mode, is there a distinction made between two threads (workloads) >> belonging to the same process and two threads belonging to different >> processes? In other words, if I were to spawn two threads from a single >> program, would it be possible to run them as two different h/w threads in SE >> mode? >> >> -Soumyaroop. >> > > I think you do that by assigning the same process object to the > workload parameter of both hardware contexts. I've never done that > myself so I might be confused. > > Gabe
Yes, Gabe's right... in SE mode, the Process object corresponds to what would be a regular OS process if you had an OS, so the way to tell that two threads belong to the same process is whether they're associated with the same Process object. From the hardware's perspective all threads are basically the same though, regardless of whether they come from the same or different processes, so that won't affect how they get scheduled on the hardware. Steve _______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
