qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/3] make endian-independent unaligned memory access functions available to libhw
@ 2011-06-06 14:25 Paolo Bonzini
  2011-06-06 14:25 ` [Qemu-devel] [PATCH v2 1/3] move WORDS_ALIGNED to qemu-common.h Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Paolo Bonzini @ 2011-06-06 14:25 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 make softfloat.h
target-dependent as well.  This is what patch 2 does.

v1->v2:
        rebase, use softfloat-specialize.h instead of introducing
        softfloat-target.h

Paolo Bonzini (3):
  move WORDS_ALIGNED to qemu-common.h
  softfloat: change default nan definitions to variables
  move unaligned memory access functions to bswap.h

 Makefile.hw                |    2 +-
 bswap.h                    |  474 ++++++++++++++++++++++++++++++++++++++++++++
 configure                  |    3 +-
 cpu-all.h                  |  446 +-----------------------------------------
 cpu-common.h               |    4 -
 fpu/softfloat-specialize.h |   72 +++++++
 fpu/softfloat.h            |   60 +-----
 qemu-common.h              |    4 +
 8 files changed, 562 insertions(+), 503 deletions(-)

-- 
1.7.4.4

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

end of thread, other threads:[~2011-07-06 13:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-06 14:25 [Qemu-devel] [PATCH v2 0/3] make endian-independent unaligned memory access functions available to libhw Paolo Bonzini
2011-06-06 14:25 ` [Qemu-devel] [PATCH v2 1/3] move WORDS_ALIGNED to qemu-common.h Paolo Bonzini
2011-06-06 17:15   ` Andreas Färber
2011-06-06 20:24     ` Paolo Bonzini
2011-06-06 22:15     ` Richard Henderson
2011-06-07  9:17       ` Paolo Bonzini
2011-06-06 14:25 ` [Qemu-devel] [PATCH v2 2/3] softfloat: change default nan definitions to variables Paolo Bonzini
2011-06-06 14:25 ` [Qemu-devel] [PATCH v2 3/3] move unaligned memory access functions to bswap.h Paolo Bonzini
2011-06-06 19:56   ` Richard Henderson
2011-06-06 20:27     ` Paolo Bonzini
2011-06-06 22:05       ` Richard Henderson
2011-06-06 23:07     ` malc
2011-06-07 16:54       ` Richard Henderson
2011-06-07 17:29         ` malc
2011-07-06 13:29 ` [Qemu-devel] [PATCH v2 0/3] make endian-independent unaligned memory access functions available to libhw Paolo Bonzini

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).