More 16-bits aligned cpu state targets

This commit is contained in:
mio
2024-10-17 16:33:59 +08:00
parent ffeddd7579
commit c42cc0fe86
3 changed files with 6 additions and 3 deletions

View File

@@ -5076,7 +5076,8 @@ X86CPU *cpu_x86_init(struct uc_struct *uc)
CPUClass *cc;
X86CPUClass *xcc;
cpu = qemu_memalign(8, sizeof(*cpu));
// env->fpregs
cpu = qemu_memalign(16, sizeof(*cpu));
if (cpu == NULL) {
return NULL;
}

View File

@@ -11016,7 +11016,8 @@ PowerPCCPU *cpu_ppc_init(struct uc_struct *uc)
CPUClass *cc;
PowerPCCPUClass *pcc;
cpu = qemu_memalign(8, sizeof(*cpu));
// vsr
cpu = qemu_memalign(16, sizeof(*cpu));
if (cpu == NULL) {
return NULL;
}

View File

@@ -245,7 +245,8 @@ S390CPU *cpu_s390_init(struct uc_struct *uc, const char *cpu_model)
CPUClass *cc;
// int i;
cpu = qemu_memalign(8, sizeof(*cpu));
// vregs
cpu = qemu_memalign(16, sizeof(*cpu));
if (cpu == NULL) {
return NULL;
}