target/riscv: Set instance_align on RISCVCPU TypeInfo

Fix alignment of CPURISCVState.vreg.

Backports 5de5b99b3101a1648ed583193db8d92eea0c4545
This commit is contained in:
Richard Henderson 2021-03-01 19:00:19 -05:00 committed by Lioncash
parent cdf40f7ff6
commit 5e6196ea6b

View file

@ -411,6 +411,7 @@ void riscv_cpu_register_types(void *opaque) {
.parent = TYPE_CPU,
.instance_userdata = opaque,
.instance_size = sizeof(RISCVCPU),
.instance_align = __alignof__(RISCVCPU),
.instance_init = riscv_cpu_init,
.abstract = true,
.class_size = sizeof(RISCVCPUClass),