[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] Pass semihosting exit code back to system.
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v2] Pass semihosting exit code back to system. |
Date: |
Tue, 18 Nov 2014 22:50:46 +0000 |
On 18 November 2014 21:19, Paolo Bonzini <address@hidden> 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