All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] make endian-independent unaligned memory access functions available in libhw
@ 2011-05-19 13:46 Paolo Bonzini
  2011-05-19 13:46 ` [Qemu-devel] [PATCH 1/3] move WORDS_ALIGNED to qemu-common.h Paolo Bonzini
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Paolo Bonzini @ 2011-05-19 13:46 UTC (permalink / raw)
  To: qemu-devel

Functions like ldl_be_p and ldl_le_p are currently used only as building
blocks for {ld,st}XX_p.  As such, they are in cpu-all.h even though they
have absolutely no dependency on the target.

In order to make them globally available, this series moves them to
bswap.h instead.

An interesting part of this is that there are functions also for floating
point values.  Leaving them in cpu-all.h would be possible but untidy.
In fact handling these is easy, but it requires to split out the few
target-dependent parts of softfloat.h.  This is what patch 2 does.

Paolo Bonzini (3):
  move WORDS_ALIGNED to qemu-common.h
  softfloat: extract softfloat-target.h
  move unaligned memory access functions to bswap.h

 Makefile.hw            |    2 +-
 bswap.h                |  481 ++++++++++++++++++++++++++++++++++++++++++++++++
 configure              |    7 +-
 cpu-all.h              |  453 +---------------------------------------------
 cpu-common.h           |    4 -
 fpu/softfloat-target.h |  119 ++++++++++++
 fpu/softfloat.c        |   11 +-
 fpu/softfloat.h        |   70 +-------
 qemu-common.h          |    4 +
 target-arm/helper.c    |    1 +
 10 files changed, 619 insertions(+), 533 deletions(-)
 create mode 100644 fpu/softfloat-target.h

-- 
1.7.4.4

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

end of thread, other threads:[~2011-05-24  6:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-19 13:46 [Qemu-devel] [PATCH 0/3] make endian-independent unaligned memory access functions available in libhw Paolo Bonzini
2011-05-19 13:46 ` [Qemu-devel] [PATCH 1/3] move WORDS_ALIGNED to qemu-common.h Paolo Bonzini
2011-05-19 13:47 ` [Qemu-devel] [PATCH 2/3] softfloat: extract softfloat-target.h Paolo Bonzini
2011-05-20 19:38   ` Blue Swirl
2011-05-20 19:45     ` Paolo Bonzini
2011-05-20 19:54       ` Blue Swirl
2011-05-23 21:11   ` Aurelien Jarno
2011-05-24  6:37     ` Paolo Bonzini
2011-05-19 13:47 ` [Qemu-devel] [PATCH 3/3] move unaligned memory access functions to bswap.h 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.