It looks like one instruction is in a loop, executed 4 times, followed by
another instruction, followed by another instruction which itself loops 3
times.  

The PC doesn't advance from 0x405bdd to 0x405be1 until the loop is
complete.  The 0x405be1 PC is probably the fallthrough target for a loop,
jumped to only when the loop is complete.  

Is instruction 0x405bdd a branch of some sort?  If so, you would get
different PC values for inst->pcState() and inst->branchTarget()[I think
that's the right syntax, anyway].  The one you see is the "fall-through"
target PC, and branchTarget would give you the "taken" target PC.

-Griffin 

On Mon, 19 Dec 2011 20:19:07 +0330, Mahmood Naderan <[email protected]>
wrote:
> (0x405bdd=>0x405be1).(0=>1)
> (0x405bdd=>0x405be1).(1=>2)
> (0x405bdd=>0x405be1).(2=>3)
> (0x405bdd=>0x405be1).(3=>4)
>
> (0x405be1=>0x405be4).(0=>1)
>
> (0x405be4=>0x405bea).(0=>1)
> (0x405be4=>0x405bea).(1=>2)
> (0x405be4=>0x405bea).(2=>3)
> 
> 
> can not understand that
> 
> 
> On 12/19/11, Griffin Wright <[email protected]> wrote:
>>
>> Well, if you print out the PCState during a loop, you'll see it do
>> something like this:
>>
>> 0=>1
>> 1=>2
>> 2=>3
>> 3=>4
>> 4=>5
>>
>> and then
>>
>> 5=>0
>>
>> when the loop finishes...
>>
>> I think.
>>
>> -Griffin
>>
>> On Mon, 19 Dec 2011 20:13:01 +0330, Mahmood Naderan
>> <[email protected]>
>> wrote:
>>> ok thanks. About (0=>1), I read the PCState class in x86/types.hh but
>>> found nothing.
>>>
>>> On 12/19/11, Griffin Wright <[email protected]> wrote:
>>>>
>>>> It represents (PC=>NextPC) for the current instruction.  I'm not 100%
>>>> sure
>>>> about 0=>1 but I think it has something to do with loop iterations.
>>>>
>>>> -Griffin Wright
>>>>
>>>> On Mon, 19 Dec 2011 19:58:29 +0330, Mahmood Naderan
>>>> <[email protected]>
>>>> wrote:
>>>>> Hi,
>>>>> In some DPRINTF messages, there is a variable "inst->pcState()" and
in
>>>>> the output messages it is shown as
>>>>>
>>>>> (0x405bdd=>0x405be1).(0=>1)
>>>>>
>>>>> What does that mean?
>>>>>
>>>>> --
>>>>> // Naderan *Mahmood;
>>>>> _______________________________________________
>>>>> gem5-users mailing list
>>>>> [email protected]
>>>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>> _______________________________________________
>>>> gem5-users mailing list
>>>> [email protected]
>>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>>
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to