From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SaQVB-0003ba-3g for qemu-devel@nongnu.org; Fri, 01 Jun 2012 07:58:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SaQV5-0003v3-0k for qemu-devel@nongnu.org; Fri, 01 Jun 2012 07:58:44 -0400 Received: from mail-ee0-f45.google.com ([74.125.83.45]:56903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SaQV4-0003uc-Nq for qemu-devel@nongnu.org; Fri, 01 Jun 2012 07:58:38 -0400 Received: by eekd41 with SMTP id d41so1159746eek.4 for ; Fri, 01 Jun 2012 04:58:36 -0700 (PDT) Message-ID: <4FC8AE3A.20303@gmail.com> Date: Fri, 01 Jun 2012 13:57:46 +0200 From: Davide Ferraretto MIME-Version: 1.0 References: <4FC8A49C.9020901@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] arm return List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Filippov Cc: qemu-devel@nongnu.org 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 > 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. >