summaryrefslogtreecommitdiffstats
path: root/bswap.h
Commit message (Collapse)AuthorAgeFilesLines
* bswap.h: build fixChristoph Egger2011-09-161-2/+1Star
| | | | | | | | | qemu build fails when CONFIG_MACHINE_BSWAP_H is defined because float32, float64, etc. are not defined. This makes qemu build. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* move unaligned memory access functions to bswap.hPaolo Bonzini2011-07-291-0/+474
| | | | | | | | This is just code movement, and moving the fpu/ include path from target-dependent to target-independent Make variables. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* bswap.h: add cpu_to_be64wu()Aurelien Jarno2011-01-101-0/+15
| | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Fix leul_to_cpu on big endian hostsAlexander Graf2010-05-311-1/+1
| | | | | | | | | | | Commit 213acd2e introduced leul_to_cpu with a special code path for big endian hosts. Unfortunately that code used preprocessor magic that didn't work. This patch replaces the explicit ##s by glue() which is proven to work reliably, enabling me to compile qemu on ppc again. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* introduce leul_to_cpuMarcelo Tosatti2010-04-281-0/+2
| | | | | | To be used by next patch. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
* bwap: add qemu_bswap helperMichael S. Tsirkin2010-02-141-0/+6
| | | | | | add helper that can swap values of 4, 2, 1 bytes Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
* rename WORDS_BIGENDIAN to HOST_WORDS_BIGENDIANJuan Quintela2009-07-271-2/+2
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* rename HAVE_BYTESWAP_H to CONFIG_BYTESWAP_HJuan Quintela2009-07-271-2/+2
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* rename HAVE_MACHINE_BSWAP_H to CONFIG_MACHINE_BSWAP_HJuan Quintela2009-07-271-2/+2
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Sparse fixes: truncation by castblueswir12009-03-071-4/+4
| | | | | | | Fix Sparse warnings about constant truncation caused by cast git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6737 c046a42c-6fe2-441c-8c8c-71466251a162
* Remove all traces of __powerpc__malc2009-01-141-1/+1
| | | | | | | | According to $GCC/gcc/config/rs6000/rs6000-c.c _ARCH_PPC is the ubiquitous define which should be used to test whether gcc targets PowerPC, on 64bit platforms _ARCH_PPC64 will be also defined. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6301 c046a42c-6fe2-441c-8c8c-71466251a162
* Attached patch makes NetBSD use the native bswap functionsblueswir12008-12-051-0/+8
| | | | | | | | | which compile. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5886 c046a42c-6fe2-441c-8c8c-71466251a162
* e1000: fix unaligned accessaurel322008-03-281-0/+7
| | | | | | | (Tristan Gingold) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4121 c046a42c-6fe2-441c-8c8c-71466251a162
* find -type f | xargs sed -i 's/[\t ]$//g' # on most filesths2007-09-161-2/+2
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3173 c046a42c-6fe2-441c-8c8c-71466251a162
* limited 8 bit support - removed unaligned memory accesses in VGA (initial ↵bellard2004-10-101-0/+27
| | | | | | patch by Johannes Schindelin) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1116 c046a42c-6fe2-441c-8c8c-71466251a162
* byte swap functionsbellard2004-08-011-0/+99
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1031 c046a42c-6fe2-441c-8c8c-71466251a162
* do not depend on thunk.h - more log itemsbellard2004-03-211-8/+0Star
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@675 c046a42c-6fe2-441c-8c8c-71466251a162
* initial x86-64 host support (Gwenole Beauchesne)bellard2004-03-181-1/+1
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@670 c046a42c-6fe2-441c-8c8c-71466251a162
* soft mmu supportbellard2003-08-101-0/+84
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@349 c046a42c-6fe2-441c-8c8c-71466251a162