summaryrefslogtreecommitdiffstats
path: root/target/ppc
diff options
context:
space:
mode:
authorRichard Henderson2020-09-16 02:46:36 +0200
committerEduardo Habkost2020-09-18 19:59:51 +0200
commit1b49d14459958dbc8b9f5cd44b43b440a9c9c62b (patch)
treeabb6fb8befe09c9c1a469173c26e8ee9f5583a04 /target/ppc
parenttarget/arm: Set instance_align on CPUARM TypeInfo (diff)
downloadqemu-1b49d14459958dbc8b9f5cd44b43b440a9c9c62b.tar.gz
qemu-1b49d14459958dbc8b9f5cd44b43b440a9c9c62b.tar.xz
qemu-1b49d14459958dbc8b9f5cd44b43b440a9c9c62b.zip
target/ppc: Set instance_align on PowerPCCPU TypeInfo
Fix alignment of CPUPPCState.vsr. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Acked-by: David Gibson <david@gibson.dropbear.id.au> Message-Id: <20200916004638.2444147-5-richard.henderson@linaro.org> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/ppc')
-rw-r--r--target/ppc/translate_init.c.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/ppc/translate_init.c.inc b/target/ppc/translate_init.c.inc
index 230a062d29..accb4f2fae 100644
--- a/target/ppc/translate_init.c.inc
+++ b/target/ppc/translate_init.c.inc
@@ -10960,6 +10960,7 @@ static const TypeInfo ppc_cpu_type_info = {
.name = TYPE_POWERPC_CPU,
.parent = TYPE_CPU,
.instance_size = sizeof(PowerPCCPU),
+ .instance_align = __alignof__(PowerPCCPU),
.instance_init = ppc_cpu_instance_init,
.instance_finalize = ppc_cpu_instance_finalize,
.abstract = true,