Re: [Gems-users] How does simics set its pc (program counter)?


Date: Wed, 13 Oct 2010 06:54:38 -0600
From: Dan Gibson <degibson@xxxxxxxx>
Subject: Re: [Gems-users] How does simics set its pc (program counter)?
Maybe your cmp is in a branch delay slot?

Regards,
Dan

On Wed, Oct 13, 2010 at 2:36 AM, Peter Fang <fangzhenman@xxxxxxxxx> wrote:
Hi, everyone!
I got a strange problem for Simics 3.0.31.
When I step simics one instruction per core for a sparc multi-core simulation,
it never ends. And the strange thing is that for core0, after it executes an
instruction cmp %o7, 0, %g0, the next pc is set to 0x105cde4. And no instruction
in other cores modify the next pc of core0. However, when I step for core0 again,
the instruction is executed at pc 0x10009c0, surprisingly not the next pc value of
last instruction!!!
So I wonder how simics set its pc. Is it set to the next pc value of last
instruction? Any idea?
 
2010-10-13

Peter Fang

_______________________________________________
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.





--
http://www.cs.wisc.edu/~gibson [esc]:wq!
[← Prev in Thread] Current Thread [Next in Thread→]