HI Farhad,

ThreadID -> index of the thread within the CPU
ContextID -> global index of the thread within the System

As you can imagine they differ in a MP simulation, with multiple CPUs per System

Kind Regards

Giacomo

From: Farhad Yusufali via gem5-users <[email protected]>
Sent: 13 November 2020 14:25
To: gem5 users mailing list <[email protected]>
Cc: Farhad Yusufali <[email protected]>
Subject: [gem5-users] Re: ThreadID vs ContextID vs threadNumber

Hello,

Just following up on this, any help would be appreciated.

Thanks,
Farhad
________________________________
From: Farhad Yusufali via gem5-users 
<[email protected]<mailto:[email protected]>>
Sent: November 11, 2020 7:31 PM
To: gem5-users <[email protected]<mailto:[email protected]>>
Cc: Farhad Yusufali 
<[email protected]<mailto:[email protected]>>
Subject: [gem5-users] ThreadID vs ContextID vs threadNumber

EXTERNAL EMAIL:  Treat content with extra caution.
Hi all,

I'm trying to identify what thread a packet and/or instruction belongs to. I 
see three possible options and I'm hoping someone can clarify the difference 
between the 3. I was not able to find a lot of documentation online.

What is the difference between ContextID, ThreadID and threadNumber? (this last 
one is a member of the DynInstPtr class)

I'm not using SMT - in this case do any of the IDs end up being the same?

Thanks,
Farhad
IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to