Paolo Bonzini <pbonzini@...>
Il ven 5 feb 2021, 19:47 Laszlo Ersek <lersek@...> ha scritto:
On 02/05/21 19:32, Paolo Bonzini wrote:Got it, it's a very good question. All edk2 porting targets shouldUnaligned pointers are already undefined behavior so you can ignore howMy question was unclearly asked, sorry. Let's say we have a UINT32 at an
naturally align all types not larger than pointers. I can only think of old
m68k that had 2-byte aligned 32-bit pointers.
Another example; we may have a pointer to a packed structure, and we
might want to poke at a UINT32 field in that structure. Not through aPacked types indeed should not be considered atomic.