[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 3/3] move unaligned memory access functions t
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH v2 3/3] move unaligned memory access functions to bswap.h |
Date: |
Tue, 07 Jun 2011 09:54:34 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Thunderbird/3.1.10 |
On 06/06/2011 04:07 PM, malc wrote:
> Depends on how bswap_16 is defined. If it is __builtin_bswap16
> then 4.5.0 and 4.6.0 generate byte reversed loads, and previous
> versions lack that builtin, so i don't think this generic code
> should go in.
It would continue to be defined as-is, without direct reference
to the __builtin_bswap functions. But you're right that the
generic code would depend on the bswap optimization pass that
recognizes the mask/shift/or pattern and converts it to the
builtins internally.
What if we kept the ppc ifdefs, but converted the rest to the
gcc generic code?
r~
- Re: [Qemu-devel] [PATCH v2 1/3] move WORDS_ALIGNED to qemu-common.h, (continued)