Yes, the PC (the _pc in the PCState structure) are the same, but the check checks also if the NPC (the _npc int the PCState structure) are the same. And here this is not the case, hence the test detects it as mispredicted.

Nathanaël

Le 27/06/2012 19:30, Ali Saidi a écrit :
Hi Nathanaël,

So are you saying that everything is predicted correctly, however the check is 
truly wrong in this case?



Thanks,

Ali





On 27.06.2012 12:03, Nathanaël Prémillieu wrote:

 From what I have understand on the example I have worked on to detect
the bug, the predicted address is computed depending on the flag of the
Call for the thumb bit. But when the check is done, the tempPC is
computed depending on flag of the Return. Thus, if the Call and the
Return are not in the same mode, the _npc of PredPC and tempPC are not
the same.
In my example, tempPC._npc = tempPC._pc + 2 (tumb mode) and Pred._npc =
Pred._pc + 4

Nathanaël



_______________________________________________
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