Hi Farhad,

To clarify:

  *   CPU ports, in all simple, minor and O3 configurations, tag generated 
Requests with ContextID.
  *   Outgoing Packets from CPU ports have a Request pointer inside, via which 
you can get the ContextID.

Kind regards,
Adrian.

From: Giacomo Travaglini via gem5-users <gem5-users@gem5.org>
Reply to: gem5 users mailing list <gem5-users@gem5.org>
Date: Friday, 13 November 2020 at 14:39
To: gem5 users mailing list <gem5-users@gem5.org>
Cc: Farhad Yusufali <farhad.yusuf...@mail.utoronto.ca>, Giacomo Travaglini 
<giacomo.travagl...@arm.com>
Subject: [gem5-users] Re: ThreadID vs ContextID vs threadNumber

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 <gem5-users@gem5.org>
Sent: 13 November 2020 14:25
To: gem5 users mailing list <gem5-users@gem5.org>
Cc: Farhad Yusufali <farhad.yusuf...@mail.utoronto.ca>
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 
<gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Sent: November 11, 2020 7:31 PM
To: gem5-users <gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Cc: Farhad Yusufali 
<farhad.yusuf...@mail.utoronto.ca<mailto:farhad.yusuf...@mail.utoronto.ca>>
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.
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 -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to