From: Laurent Vivier <laurent@vivier.eu>
To: qemu-devel@nongnu.org
Cc: Laurent Vivier <laurent@vivier.eu>, Riku Voipio <riku.voipio@iki.fi>
Subject: [Qemu-devel] [PATCH 0/2] linux-user: fix sparc32plus emulation
Date: Mon, 2 Apr 2018 12:24:51 +0200 [thread overview]
Message-ID: <20180402102453.9883-1-laurent@vivier.eu> (raw)
The sparc signal emulation is broken:
sparc has a special field called ka_restorer and to be used
in place of sa_restorer. Without it, the signal handler
exits and executes unexpected instructions.
(sparc64 has the same kind of problem but this change
doesn't fix it)
Once this problem is fixed, we can chroot in a shell and
execute "ls". And "ls" fails to read directory content
because flags of open() are not translated correctly.
To fix that, the second patch defines the good sparc
value for TARGET___O_TMPFILE.
Laurent Vivier (2):
linux-user: define TARGET_ARCH_HAS_KA_RESTORER
linux-user: fix TARGET___O_TMPFILE for sparc
linux-user/signal.c | 4 ++--
linux-user/syscall.c | 7 +++++--
linux-user/syscall_defs.h | 5 +++++
3 files changed, 12 insertions(+), 4 deletions(-)
--
2.14.3
next reply other threads:[~2018-04-02 10:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-02 10:24 Laurent Vivier [this message]
2018-04-02 10:24 ` [Qemu-devel] [PATCH 1/2] linux-user: define TARGET_ARCH_HAS_KA_RESTORER Laurent Vivier
2018-04-02 10:24 ` [Qemu-devel] [PATCH 2/2] linux-user: fix TARGET___O_TMPFILE for sparc Laurent Vivier
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=20180402102453.9883-1-laurent@vivier.eu \
--to=laurent@vivier.eu \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
/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).