qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC] Streamlining endian handling in TCG


From: Richard Henderson
Subject: Re: [Qemu-devel] [RFC] Streamlining endian handling in TCG
Date: Wed, 28 Aug 2013 10:16:54 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8

On 08/28/2013 09:38 AM, Peter Maydell wrote:
>> (B) Add an additional bit to the "opc" to indicate which endianness is 
>> desired.
>>  E.g. 0 = LE, 8 = BE.  Expose the opc interface to the translators.  At which
>> point generating a load becomes more like
>>
>>     tcg_gen_qemu_ld_tl(dest, addr, size | sign | dc->big_endian);
>>
>> and the current endianness of the guest becomes a bit on the TB, to be copied
>> into the DisasContext at the beginning of translation.
> 
> I guess we deal with ARMv5-style BE32 by having the target
> emit an explicit XOR TCG op?

Yes.  I see no other way to implement that.

> Do we need to overhaul the C interface to the
> memory system too? (ie ldl_p and friends).

I don't think so, since we already have ldl_{le,be}_p.


r~



reply via email to

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