From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqrcA-0007tR-BB for qemu-devel@nongnu.org; Tue, 18 Nov 2014 17:51:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xqrc4-0007t0-5R for qemu-devel@nongnu.org; Tue, 18 Nov 2014 17:51:14 -0500 Received: from mail-la0-f41.google.com ([209.85.215.41]:36473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xqrc3-0007r1-Ui for qemu-devel@nongnu.org; Tue, 18 Nov 2014 17:51:08 -0500 Received: by mail-la0-f41.google.com with SMTP id gf13so8853527lab.14 for ; Tue, 18 Nov 2014 14:51:06 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <546BB7F8.1050800@redhat.com> References: <1416340889-4991-1-git-send-email-ilg@livius.net> <546BB7F8.1050800@redhat.com> From: Peter Maydell Date: Tue, 18 Nov 2014 22:50:46 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v2] Pass semihosting exit code back to system. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Liviu Ionescu , QEMU Developers On 18 November 2014 21:19, Paolo Bonzini wrote: > The isa-debugexit and testdev character device do not exit with exitcode > 0, in order to distinguish an exit from a system power down; the > low-order bit is always 1. The return values then should be 1 and 3 > instead of 0 and 1. Semihosting isn't a test device -- it's an implementation of an ABI (mostly intended for almost-but-not-quite-bare-metal programs). I'm pretty sure that exiting anything except 0 on a successful exit request by the guest will break usage of QEMU in scenarios like the gcc test suite. thanks -- PMM