[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 4/9] adding instructions encodings for LE and BE
Re: [Qemu-devel] [PATCH 4/9] adding instructions encodings for LE and BE compilers.
Wed, 1 Jun 2016 23:32:26 -0700
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0
On 05/29/2016 06:23 PM, Michael Rolnik wrote:
I am aware of bad portability of bit fields as compilers
for LE and BE hosts lists bit fields in different order
However they won't "parse" in target memory but a data prepared by me
What data prepared by you? You're assigning to an int16_t and hoping that
specific bit fields map to specific bits. That's just non-portable.
We don't want code that does that. The fact that you had to replicate 1018
lines of code should have been a hint that you're doing it wrong.
Take Peter's advice and use extract32.
- Re: [Qemu-devel] [PATCH 4/9] adding instructions encodings for LE and BE compilers.,
Richard Henderson <=