All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Bonifazi <stefboombastic@gmail.com>
To: QEMU Developers <qemu-devel@nongnu.org>
Subject: [Qemu-devel] HELP PLEASE! Consecutive runs of qemu-user
Date: Sat, 01 Jan 2011 22:31:31 +0100	[thread overview]
Message-ID: <4D1F9D33.6070805@gmail.com> (raw)

Hi!
  First of all Happy new year to everybody! :) Wish you all to realize 
all your dreams! :)
I edited QEMU user, more exactly qemu-ppc launching the main function 
(inside main.c) from another c function I created, passing it the 
appropriate parameters.
I also caught the syscall 1 preventing it to abort the process, and 
simply returning from cpu_loop function, so that this function is not 
more endless, and main returns to my user defined function.
The problem is that launching a second time main with other parameters 
fails: leaving the code like it was, the previous translated binary was 
kept "in memory" and run again, no matter what binary parameter I passed 
to main.
I added then tb_flush(env); after cpu_loop inside main..
But with this edit launching main with other parameters blocks the 
execution at tcg_qemu_tb_exec(tc_ptr); ..It sounds like QEMU stores the 
state of the translation even after main function is over :(
Is it possible to reset completely the state, allowing consecutive runs 
of different binaries?
What are the state variables I should "clean" between different runs?
Thank you very much for your help!
Best regards!
Stefano B.

             reply	other threads:[~2011-01-01 21:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-01 21:31 Stefano Bonifazi [this message]
2011-01-04 10:56 ` [Qemu-devel] HELP PLEASE! Consecutive runs of qemu-user Stefan Weil

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=4D1F9D33.6070805@gmail.com \
    --to=stefboombastic@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.