qom: Allow objects to be allocated with increased alignment
commit4c880f363e9e43862230e22a4503e2fc0f092fba
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 16 Sep 2020 00:46:34 +0000 (15 17:46 -0700)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 18 Sep 2020 17:59:51 +0000 (18 13:59 -0400)
tree64d85085fd5c3696149bdaf049625c7e3928051e
parenta21e6607771a27553814ce3c2c7db532a6a4b576
qom: Allow objects to be allocated with increased alignment

It turns out that some hosts have a default malloc alignment less
than that required for vectors.

We assume that, with compiler annotation on CPUArchState, that we
can properly align the vector portion of the guest state.  Fix the
alignment of the allocation by using qemu_memalloc when required.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200916004638.2444147-3-richard.henderson@linaro.org>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
include/qom/object.h
qom/object.c