| There isn't, but you could easily add that.
 
 Polina
 
 
 On Mon, Jun 1, 2009 at 8:05 PM, David Bonavila <david.bonavila@xxxxxxxxxxxxxxxxxx>  wrote: 
I know pseq.C makes the call, but there isn't a counter of privileged instructions anywhere, is it? I need to count them.
 
 
Hello,
 
 pseq.C makes the call "d_instr->getPrivilegeMode()". Basically the
 dynamic.C/h has this function.
 
 -Niranjan
 
 
 On Tue, 2 Jun 2009, David Bonavila wrote:
 
 > Hi,
 >
 > I am using GEMS 2.1 to simulate a CMP dual-core system, and I need to count
 > the number of instructions executed in "Privileged Mode" (SuperVisor) and
 > the ones executed in "User Mode".
 >
 > I have found that each instruction has a "m_priv" bit, used to distinguish
 > the mode of execution, and that this bit can be evaluated with the function
 > "getPrivilegeMode()", but I don't know from where to call this function.
 >
 > I need the total number of instructions executed in "Privileged Mode" at the
 > end of the simulation, to be written to the stats file.
 >
 > How could I get this done??
 >
 > Thank you in advance!!
 >
 
 
 _______________________________________________
 Gems-users mailing list
 Gems-users@xxxxxxxxxxx
 https://lists.cs.wisc.edu/mailman/listinfo/gems-users
 Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
 
 
 _______________________________________________
 Gems-users mailing list
 Gems-users@xxxxxxxxxxx
 https://lists.cs.wisc.edu/mailman/listinfo/gems-users
 Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
 
 
 
 |