From: Paul Mackerras <paulus@samba.org>
To: linuxppc-dev@ozlabs.org
Subject: [PATCH v2 0/3] powerpc: Make sstep.c more generally useful
Date: Tue, 2 Sep 2014 14:35:06 +1000 [thread overview]
Message-ID: <1409632509-32510-1-git-send-email-paulus@samba.org> (raw)
This patch series modifies the code in arch/powerpc/lib/sstep.c so
that it can be used by KVM in its instruction emulation, thereby
reducing the number of different PowerPC instruction emulators that we
have in the kernel. It does this by splitting the existing
emulate_step() function into two: an analyse_instr() function that
decodes an instruction and executes the easy ones, and an
emulate_step() function that uses analyse_instr() and then executes
the loads and stores. The subsequent two patches add emulation of
some extra instructions.
v2: add #ifdef CONFIG_ALTIVEC around do_vec_{load,store} calls.
The patch series is against v3.17-rc1.
arch/powerpc/include/asm/sstep.h | 62 +++
arch/powerpc/lib/sstep.c | 996 +++++++++++++++++++++++++--------------
2 files changed, 698 insertions(+), 360 deletions(-)
next reply other threads:[~2014-09-02 4:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-02 4:35 Paul Mackerras [this message]
2014-09-02 4:35 ` [PATCH 1/3] powerpc: Split out instruction analysis part of emulate_step() Paul Mackerras
2014-09-02 4:35 ` [PATCH 2/3] powerpc: Emulate icbi, mcrf and conditional-trap instructions Paul Mackerras
2014-09-02 4:35 ` [PATCH 3/3] powerpc: Implement emulation of string loads and stores Paul Mackerras
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=1409632509-32510-1-git-send-email-paulus@samba.org \
--to=paulus@samba.org \
--cc=linuxppc-dev@ozlabs.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).