[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] bswap.h: Rename ldl_p, stl_p, etc to ldl_he_p,
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH] bswap.h: Rename ldl_p, stl_p, etc to ldl_he_p, stl_he_p, etc |
Date: |
Thu, 15 May 2014 19:13:10 +0100 |
On 2 May 2014 19:48, Richard Henderson <address@hidden> wrote:
> On 05/02/2014 10:32 AM, Peter Maydell wrote:
>> We have an unfortunate naming clash between the functions
>> ldl_p, stl_p, etc defined in bswap.h (which have semantics
>> "load/store in host endianness") and the #defines of the same
>> name in cpu-all.h (which have the semantics "load/store in
>> target endianness").
>>
>> Fortunately it turns out that the only users of the bswap.h
>> functions are all within bswap.h itself, so we can simply
>> rename them to include a _he_ infix for "host endianness".
>>
>> Signed-off-by: Peter Maydell <address@hidden>
>> ---
>> Frankly I'm surprised that the only users of these functions
>> are the ones within bswap.h itself, but it's a lucky escape
>> from having to audit an enormous pile of code...
>>
>> We had talked about changing the "target-endian" accessors
>> to be ldl_te_p &c, but given the uses aren't tangled together
>> as I feared they would be, I'm not sure we can justify the
>> global function rename.
>
> I'm surprised too, but... good news, I guess.
>
> Reviewed-by: Richard Henderson <address@hidden>
Anybody care to suggest a submaintainer tree this should
go in via?
thanks
-- PMM
- [Qemu-devel] [PATCH] bswap.h: Rename ldl_p, stl_p, etc to ldl_he_p, stl_he_p, etc, Peter Maydell, 2014/05/02
- Re: [Qemu-devel] [PATCH] bswap.h: Rename ldl_p, stl_p, etc to ldl_he_p, stl_he_p, etc, Richard Henderson, 2014/05/02
- Re: [Qemu-devel] [PATCH] bswap.h: Rename ldl_p, stl_p, etc to ldl_he_p, stl_he_p, etc,
Peter Maydell <=
- Re: [Qemu-devel] [PATCH] bswap.h: Rename ldl_p, stl_p, etc to ldl_he_p, stl_he_p, etc, Richard Henderson, 2014/05/15
- Re: [Qemu-devel] [PATCH] bswap.h: Rename ldl_p, stl_p, etc to ldl_he_p, stl_he_p, etc, Michael Tokarev, 2014/05/19
- Prev by Date:
Re: [Qemu-devel] [PATCH v2 00/12] qapi: Purge error_is_set()
- Next by Date:
Re: [Qemu-devel] [PATCH] bswap.h: Rename ldl_p, stl_p, etc to ldl_he_p, stl_he_p, etc
- Previous by thread:
Re: [Qemu-devel] [PATCH] bswap.h: Rename ldl_p, stl_p, etc to ldl_he_p, stl_he_p, etc
- Next by thread:
Re: [Qemu-devel] [PATCH] bswap.h: Rename ldl_p, stl_p, etc to ldl_he_p, stl_he_p, etc
- Index(es):