From: Leon Alrae <leon.alrae@imgtec.com>
To: qemu-devel@nongnu.org
Cc: aurelien@aurel32.net, rth@twiddle.net
Subject: [Qemu-devel] [PATCH 0/2] target-mips: rework conditional stores for mttcg
Date: Wed, 21 Sep 2016 09:07:55 +0100 [thread overview]
Message-ID: <1474445277-3160-1-git-send-email-leon.alrae@imgtec.com> (raw)
This small series changes MIPS conditional stores implementation for mttcg.
Specifically we compare virtual address of LL and SC (rather than physical)
which allows us to have just a single inlined implementation for user and
system emulation and to use new atomic helpers.
This is done in 2 steps:
Patch 1: modifies existing SC implementation to use virtual addresses
Patch 2: SC emulation rework and making use of cmpxchg
These patches apply on top of Richard's atomic series. I've done only
partial testing since many of my Linux images hit the abort() due to
EXCP_ATOMIC -- but IIUC this is a missing piece in atomic helpers rather
than a problem in the code gen.
v2:
* improved and simplified SC implementation according to Richard's comments
Leon Alrae (2):
target-mips: compare virtual addresses in LL/SC sequence
target-mips: reimplement SC instruction and use cmpxchg
linux-user/main.c | 58 -------------------------
target-mips/cpu.h | 7 +--
target-mips/helper.c | 6 +--
target-mips/helper.h | 2 -
target-mips/machine.c | 7 +--
target-mips/op_helper.c | 52 +++++++----------------
target-mips/translate.c | 111 +++++++++++++++++-------------------------------
7 files changed, 63 insertions(+), 180 deletions(-)
--
2.7.4
next reply other threads:[~2016-09-21 8:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-21 8:07 Leon Alrae [this message]
2016-09-21 8:07 ` [Qemu-devel] [PATCH 1/2] target-mips: compare virtual addresses in LL/SC sequence Leon Alrae
2016-09-21 8:07 ` [Qemu-devel] [PATCH 2/2] target-mips: reimplement SC instruction and use cmpxchg Leon Alrae
2016-09-21 20:16 ` Richard Henderson
2016-09-27 7:02 ` Leon Alrae
-- strict thread matches above, loose matches on Subject: below --
2016-09-15 8:44 [Qemu-devel] [PATCH 0/2] target-mips: rework conditional stores for mttcg Leon Alrae
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=1474445277-3160-1-git-send-email-leon.alrae@imgtec.com \
--to=leon.alrae@imgtec.com \
--cc=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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.