From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Liviu Ionescu <ilg@livius.net>, QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v2] Pass semihosting exit code back to system.
Date: Wed, 19 Nov 2014 10:34:14 +0100 [thread overview]
Message-ID: <546C6416.8080104@redhat.com> (raw)
In-Reply-To: <CAFEAcA8FSoMF41eGbjgycLn=FBTR+LMrMynwaPqG2k8PbHw7rg@mail.gmail.com>
On 18/11/2014 23:50, Peter Maydell wrote:
> On 18 November 2014 21:19, Paolo Bonzini <pbonzini@redhat.com> 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! (FWIW, I don't find the behavior of those devices very useful
either... just mentioning them for the sake of consistency).
Paolo
prev parent reply other threads:[~2014-11-19 9:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-18 20:01 [Qemu-devel] [PATCH v2] Pass semihosting exit code back to system Liviu Ionescu
2014-11-18 20:08 ` Peter Maydell
2014-11-18 21:19 ` Paolo Bonzini
2014-11-18 21:43 ` Liviu Ionescu
2014-11-18 22:50 ` Peter Maydell
2014-11-19 9:34 ` Paolo Bonzini [this message]
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=546C6416.8080104@redhat.com \
--to=pbonzini@redhat.com \
--cc=ilg@livius.net \
--cc=peter.maydell@linaro.org \
--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.