All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 00/11] implement dynamic endianness switching
@ 2014-06-21 12:58 Paolo Bonzini
  2014-06-21 12:58 ` [Qemu-devel] [PATCH v3 01/11] linux-user: arm: fix coding style for some linux-user signal functions Paolo Bonzini
                   ` (12 more replies)
  0 siblings, 13 replies; 46+ messages in thread
From: Paolo Bonzini @ 2014-06-21 12:58 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell

This fixes the Raspberry Pi optimized memcmp library (with both user-mode
and system-mode emulation).

Compared to the previous submission, the main changes are:

- I track access endianness by taking into account both SCTLR.B and CPSR.E,
  to make the code easier to understand (though a little bit more
  convoluted)

- because of this, I prevent execution of BE32 executables with ARMv7 or v8
  CPUs.  These CPUs do not have SCTLR.B.

- because of this, I also included an untested patch to implement BE32
  mode in system emulation (BE8 should already work with the previous
  versions of the series).

Note that I also tested the rest only with BE32, since BE8 is not included
in linux-user-test-0.3 (it may be possible to convert BE32 to BE8 using
ld -r?  I haven't tried yet and I'm going to travel for the rest of the
weekend).

It is a bit late for 2.1, so I wouldn't complain if this is pushed out
to the next version.

Thanks,

Paolo

Paolo Bonzini (11):
  linux-user: arm: fix coding style for some linux-user signal functions
  linux-user: arm: pass env to get_user_code_*
  target-arm: implement SCTLR.B, drop bswap_code
  linux-user: arm: set CPSR.E correctly for BE8 mode
  linux-user: arm: handle CPSR.E correctly in strex emulation
  target-arm: implement SCTLR.EE
  target-arm: pass DisasContext to gen_aa32_ld*/st*
  target-arm: introduce tbflag for CPSR.E
  target-arm: implement setend
  target-arm: reorganize gen_aa32_ld/st to prepare for BE32 system emulation
  target-arm: implement BE32 mode in system emulation

 linux-user/arm/target_cpu.h |   2 +
 linux-user/main.c           |  81 ++++++--
 linux-user/signal.c         | 114 ++++++------
 target-arm/arm_ldst.h       |   8 +-
 target-arm/cpu.h            |  85 ++++++++-
 target-arm/helper.c         |  46 ++++-
 target-arm/helper.h         |   1 +
 target-arm/op_helper.c      |   5 +
 target-arm/translate-a64.c  |   6 +-
 target-arm/translate.c      | 444 +++++++++++++++++++++++++++-----------------
 target-arm/translate.h      |   4 +-
 11 files changed, 525 insertions(+), 271 deletions(-)

-- 
1.9.3

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

end of thread, other threads:[~2015-06-24 10:49 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-21 12:58 [Qemu-devel] [PATCH v3 00/11] implement dynamic endianness switching Paolo Bonzini
2014-06-21 12:58 ` [Qemu-devel] [PATCH v3 01/11] linux-user: arm: fix coding style for some linux-user signal functions Paolo Bonzini
2014-06-26 14:22   ` Peter Maydell
2014-06-21 12:58 ` [Qemu-devel] [PATCH v3 02/11] linux-user: arm: pass env to get_user_code_* Paolo Bonzini
2014-06-26 14:23   ` Peter Maydell
2014-06-21 12:58 ` [Qemu-devel] [PATCH v3 03/11] target-arm: implement SCTLR.B, drop bswap_code Paolo Bonzini
2014-06-26 14:01   ` Peter Maydell
2014-06-26 14:15     ` Paolo Bonzini
2014-06-26 14:53       ` Peter Maydell
2014-06-26 16:14         ` Paolo Bonzini
2014-06-21 12:58 ` [Qemu-devel] [PATCH v3 04/11] linux-user: arm: set CPSR.E correctly for BE8 mode Paolo Bonzini
2014-06-26 14:15   ` Peter Maydell
2014-06-26 14:18     ` Paolo Bonzini
2015-06-22 22:48       ` Peter Crosthwaite
2015-06-23  8:04         ` Peter Maydell
2015-06-23 18:43           ` Peter Crosthwaite
2015-06-23 18:54             ` Peter Maydell
2015-06-23 20:30               ` Peter Crosthwaite
2015-06-23 21:34                 ` Peter Maydell
2015-06-24 10:09                 ` Paolo Bonzini
2015-06-24 10:21                   ` Peter Maydell
2015-06-24 10:34                     ` Paolo Bonzini
2015-06-24 10:48                       ` Peter Maydell
2015-06-24 10:49                         ` Paolo Bonzini
2014-06-21 12:58 ` [Qemu-devel] [PATCH v3 05/11] linux-user: arm: handle CPSR.E correctly in strex emulation Paolo Bonzini
2014-06-26 14:21   ` Peter Maydell
2014-06-21 12:58 ` [Qemu-devel] [PATCH v3 06/11] target-arm: implement SCTLR.EE Paolo Bonzini
2014-06-26 14:29   ` Peter Maydell
2014-06-21 12:58 ` [Qemu-devel] [PATCH v3 07/11] target-arm: pass DisasContext to gen_aa32_ld*/st* Paolo Bonzini
2014-06-26 14:31   ` Peter Maydell
2014-06-21 12:58 ` [Qemu-devel] [PATCH v3 08/11] target-arm: introduce tbflag for CPSR.E Paolo Bonzini
2014-06-26 14:33   ` Peter Maydell
2014-06-21 12:58 ` [Qemu-devel] [PATCH v3 09/11] target-arm: implement setend Paolo Bonzini
2014-06-26 14:35   ` Peter Maydell
2014-06-21 12:58 ` [Qemu-devel] [PATCH v3 10/11] target-arm: reorganize gen_aa32_ld/st to prepare for BE32 system emulation Paolo Bonzini
2014-06-26 14:38   ` Peter Maydell
2014-06-21 12:58 ` [Qemu-devel] [PATCH v3 11/11] target-arm: implement BE32 mode in " Paolo Bonzini
2014-06-21 20:16   ` Richard Henderson
2014-06-26 14:43   ` Peter Maydell
2014-06-26 14:51     ` Paolo Bonzini
2014-12-28 12:12 ` [Qemu-devel] [PATCH v3 00/11] implement dynamic endianness switching Stefan Weil
2014-12-28 21:26   ` Paolo Bonzini
2015-06-18 18:37 ` Peter Crosthwaite
2015-06-18 19:00   ` Paolo Bonzini
2015-06-18 20:24     ` Peter Crosthwaite
2015-06-19  7:07       ` Paolo Bonzini

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.