qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: Lyu Mitnick <mitnick.lyu@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Execute QEMU "the same"
Date: Tue, 23 Aug 2011 21:41:18 +0200	[thread overview]
Message-ID: <20110823194118.GC32250@zapo> (raw)
In-Reply-To: <CAJHPPnfRZYZpacwQS_mZkVMzcDnKw2zK16k=ksx=sX9a=JXwig@mail.gmail.com>

On Tue, Aug 23, 2011 at 07:04:43PM +0800, Lyu Mitnick wrote:
> Hello all,
> 
> I am wondering to know whether QEMU could run &quot;the same&quot; twice. ie.
> the same of execution trace.
> I read the user manual and find options like:  &quot;-clock dynticks -rtc
> base=2006-06-17T16:01:21,clock=vm -icount 1&quot;.
> Would QEMU run &quot;the same&quot; 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	other threads:[~2011-08-23 19:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-23 11:04 [Qemu-devel] Execute QEMU "the same" Lyu Mitnick
2011-08-23 19:41 ` Edgar E. Iglesias [this message]
2011-08-24  1:04 ` 陳韋任

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110823194118.GC32250@zapo \
    --to=edgar.iglesias@gmail.com \
    --cc=mitnick.lyu@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).