All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] target-mips: rework conditional stores for mttcg
@ 2016-09-21  8:07 Leon Alrae
  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
  0 siblings, 2 replies; 6+ messages in thread
From: Leon Alrae @ 2016-09-21  8:07 UTC (permalink / raw)
  To: qemu-devel; +Cc: aurelien, rth

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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [Qemu-devel] [PATCH 0/2] target-mips: rework conditional stores for mttcg
@ 2016-09-15  8:44 Leon Alrae
  2016-09-15  8:44 ` [Qemu-devel] [PATCH 1/2] target-mips: compare virtual addresses in LL/SC sequence Leon Alrae
  0 siblings, 1 reply; 6+ messages in thread
From: Leon Alrae @ 2016-09-15  8:44 UTC (permalink / raw)
  To: qemu-devel; +Cc: aurelien, rth

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.

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 | 135 ++++++++++++++++++++++++------------------------
 7 files changed, 91 insertions(+), 176 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-09-27  7:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-21  8:07 [Qemu-devel] [PATCH 0/2] target-mips: rework conditional stores for mttcg Leon Alrae
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
2016-09-15  8:44 ` [Qemu-devel] [PATCH 1/2] target-mips: compare virtual addresses in LL/SC sequence Leon Alrae

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.