Skip to content

Commit

Permalink
target/ppc: Set instance_align on PowerPCCPU TypeInfo
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rth7680 authored and ehabkost committed Sep 18, 2020
1 parent d03087b commit 1b49d14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions target/ppc/translate_init.c.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1b49d14

Please sign in to comment.