Message ID | 20200916004638.2444147-5-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | qom: Allow object to be aligned | expand |
On Tue, Sep 15, 2020 at 05:46:36PM -0700, Richard Henderson wrote: > Fix alignment of CPUPPCState.vsr. > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> LGTM Acked-by: David Gibson <david@gibson.dropbear.id.au> > --- > Cc: David Gibson <david@gibson.dropbear.id.au> > Cc: qemu-ppc@nongnu.org > --- > target/ppc/translate_init.c.inc | 1 + > 1 file changed, 1 insertion(+) > > 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,
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,
Fix alignment of CPUPPCState.vsr. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- Cc: David Gibson <david@gibson.dropbear.id.au> Cc: qemu-ppc@nongnu.org --- target/ppc/translate_init.c.inc | 1 + 1 file changed, 1 insertion(+)