Re: [Qemu-devel] [PATCH v2] loader: Fix misaligned member access

2018-04-23 Thread Peter Maydell
On 23 April 2018 at 15:14, Philippe Mathieu-Daudé wrote: > This fixes the following ASan warning: > > $ mips64el-softmmu/qemu-system-mips64el -M boston -kernel vmlinux.gz.itb > -nographic > hw/core/loader-fit.c:108:17: runtime error: load of misaligned address > 0x7f95cd7e4264 for type 'fdt6

[Qemu-devel] [PATCH v2] loader: Fix misaligned member access

2018-04-23 Thread Philippe Mathieu-Daudé
This fixes the following ASan warning: $ mips64el-softmmu/qemu-system-mips64el -M boston -kernel vmlinux.gz.itb -nographic hw/core/loader-fit.c:108:17: runtime error: load of misaligned address 0x7f95cd7e4264 for type 'fdt64_t', which requires 8 byte alignment 0x7f95cd7e4264: note: pointer