|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH 4/9] adding instructions encodings for LE and BE compilers. |
Date: | Wed, 1 Jun 2016 23:32:26 -0700 |
User-agent: | 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. r~
[Prev in Thread] | Current Thread | [Next in Thread] |