Re: [Gems-users] How to count "Privileged" instructions in Opal??


Date: Mon, 1 Jun 2009 19:45:49 -0400 (EDT)
From: Niran Soundararajan <soundara@xxxxxxxxxxx>
Subject: Re: [Gems-users] How to count "Privileged" instructions in Opal??

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!!

[← Prev in Thread] Current Thread [Next in Thread→]