On Tue, Aug 23, 2011 at 07:04:43PM +0800, Lyu Mitnick wrote:
> Hello all,
> 
> I am wondering to know whether QEMU could run "the same" twice. ie.
> the same of execution trace.
> I read the user manual and find options like:  "-clock dynticks -rtc
> base=2006-06-17T16:01:21,clock=vm -icount 1".
> Would QEMU run "the same" with these options??
> 
> PS. I also found the function cpu_io_recompile() with comments:
>       /* in deterministic execution mode, instructions doing device I/Os
>          must be at the end of the TB */
>       But I don't know the means of deterministic execution mode and how to
> turn on it.
> 
> thanks a lot

Hi,

I think so, yes. But it really depends on what you are doing.
I've gotten good results, but only tested it on CRIS with models of boards
that dont have peripherals that interact with the outside. For example,
the board in question has a CRIS and a couple of devices that compute
stuff or generate data but do not interact with the outside world.
External IO (such as you typing stuff into a simulated uart) will
ofcourse not be deterministic.

Cheers

Reply via email to