qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 0.16 v3 0/3] make endian-independent unaligned memor


From: Paolo Bonzini
Subject: [Qemu-devel] [PATCH 0.16 v3 0/3] make endian-independent unaligned memory access functions available to libhw
Date: Thu, 28 Jul 2011 12:10:27 +0200

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.

v2->v3:
        rebase

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]