mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 12:25:32 +00:00
target/riscv: Set instance_align on RISCVCPU TypeInfo
Fix alignment of CPURISCVState.vreg. Backports 5de5b99b3101a1648ed583193db8d92eea0c4545
This commit is contained in:
parent
cdf40f7ff6
commit
5e6196ea6b
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue