]> Git Repo - qemu.git/commit
qom: Allow objects to be allocated with increased alignment
authorRichard Henderson <[email protected]>
Wed, 16 Sep 2020 00:46:34 +0000 (17:46 -0700)
committerEduardo Habkost <[email protected]>
Fri, 18 Sep 2020 17:59:51 +0000 (13:59 -0400)
commit4c880f363e9e43862230e22a4503e2fc0f092fba
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 <[email protected]>
Message-Id: <20200916004638.2444147[email protected]>
Signed-off-by: Eduardo Habkost <[email protected]>
include/qom/object.h
qom/object.c
This page took 0.025394 seconds and 4 git commands to generate.