|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] packed structures and unaligned accesses (sparc) |
Date: | Tue, 28 Mar 2017 07:43:01 +1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 03/28/2017 03:34 AM, Peter Maydell wrote:
That all makes sense in isolation, but shouldn't something have at least warned that "&h.size" isn't actually a uint32_t* in the sense of being something you can validly pass to a function that takes a uint32_t* ?
That's a long-known bug in the implementation of packed data. Yes, it should, but it doesn't.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |