All of lore.kernel.org
 help / color / mirror / Atom feed
From: Davide Ferraretto <femudevelopment@gmail.com>
To: Max Filippov <jcmvbkbc@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] arm return
Date: Fri, 01 Jun 2012 13:57:46 +0200	[thread overview]
Message-ID: <4FC8AE3A.20303@gmail.com> (raw)
In-Reply-To: <CAMo8BfKO+Xb27Ubd0Fny7j5ketV9g8A=0N2_ZquySEk9Zzfb6Q@mail.gmail.com>

I tried to insert " printf("exit\n"); ", but qemu dosen't write to monitor.

On 06/01/12 13:43, Max Filippov wrote:
> On Fri, Jun 1, 2012 at 3:16 PM, Davide Ferraretto
> <femudevelopment@gmail.com>  wrote:
>> In arm user mode, where does qemu exit? Where is last qemu's instruction?
>>
>> I.E.
>> int main (){return 0;}
>> in what file does qemu run "return 0"??
> Simulated code reaches the point where libc calls 'exit' or 'exit_group' syscall
> and then QEMU goes to the do_syscall in the linux-user/syscall.c to terminate
> the process.
>

  reply	other threads:[~2012-06-01 11:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-01 11:16 [Qemu-devel] arm return Davide Ferraretto
2012-06-01 11:43 ` Max Filippov
2012-06-01 11:57   ` Davide Ferraretto [this message]
2012-06-01 12:23     ` Max Filippov
2012-06-01 12:30       ` Davide Ferraretto
2012-06-01 12:42         ` Max Filippov
     [not found]           ` <4FC8BD42.6080209@gmail.com>
2012-06-01 13:12             ` Max Filippov
     [not found]               ` <4FC8C03A.2000902@gmail.com>
2012-06-01 13:26                 ` Max Filippov

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=4FC8AE3A.20303@gmail.com \
    --to=femudevelopment@gmail.com \
    --cc=jcmvbkbc@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.