On Fri, Oct 4, 2013 at 8:24 AM, Ali Saidi <[email protected]> wrote: > > I think ThreadId is supposed to be the SMT thread, and > context id is supposed to be the execution context number. These seems > to not be very well defined and could certainly use some cleanup.
I believe the primary purpose of these fields is for tracking statistics by hardware thread context in the memory system (i.e., they're not supposed to be functionally visible, they're just for analysis). IIRC, originally we had a CPU ID for this purpose, then when we added SMT we added a thread ID, then dealing with combination of the two became awkward so the CPU ID was replaced with a "context ID" that's supposed to enumerate HW thread contexts across all CPUs. Somehow when that happened though we did not (or were unable to) remove the thread ID, so it's still around too. Steve _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
