From: Max Filippov <jcmvbkbc@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH for-1.2 v2] target-xtensa: return ENOSYS for unimplemented simcalls
Date: Wed, 29 Aug 2012 14:13:24 +0400 [thread overview]
Message-ID: <CAMo8BfK8AzJHpQNMCOL4o6kRW-SN7mQyifHMp4Gez76wtkgHAg@mail.gmail.com> (raw)
In-Reply-To: <CAFEAcA-xqh-CwDW_vA0ht06d389N3x6PhVP2SvRP=wxfz9MChQ@mail.gmail.com>
On Wed, Aug 29, 2012 at 1:38 PM, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 22 August 2012 19:03, Max Filippov <jcmvbkbc@gmail.com> wrote:
>> --- a/target-xtensa/xtensa-semi.c
>> +++ b/target-xtensa/xtensa-semi.c
>> @@ -218,6 +218,8 @@ void HELPER(simcall)(CPUXtensaState *env)
>>
>> default:
>> qemu_log("%s(%d): not implemented\n", __func__, regs[2]);
>> + regs[2] = -1;
>> + regs[3] = ENOSYS;
>> break;
>> }
>
> This doesn't look right -- ENOSYS is a host errno, and may vary
> between host OSes and CPU architectures. I would have thought you'd
> want to return a value defined by whatever guest ABI we're
> emulating here.
That means also converting errno after open/close/read/write...
Is there a way to reuse linux-user errno convertor in the softmmu target?
--
Thanks.
-- Max
next prev parent reply other threads:[~2012-08-29 10:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-22 18:03 [Qemu-devel] [PATCH for-1.2 v2] target-xtensa: return ENOSYS for unimplemented simcalls Max Filippov
2012-08-29 9:32 ` Max Filippov
2012-08-29 9:38 ` Peter Maydell
2012-08-29 10:13 ` Max Filippov [this message]
2012-08-29 10:34 ` Peter Maydell
2012-08-29 10:54 ` Max Filippov
2012-09-01 11:36 ` Blue Swirl
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=CAMo8BfK8AzJHpQNMCOL4o6kRW-SN7mQyifHMp4Gez76wtkgHAg@mail.gmail.com \
--to=jcmvbkbc@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).