Skip to content

Commit

Permalink
More 16-bits aligned cpu state targets
Browse files Browse the repository at this point in the history
  • Loading branch information
wtdcode committed Oct 17, 2024
1 parent ffeddd7 commit c42cc0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion qemu/target/i386/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 2 additions & 1 deletion qemu/target/ppc/translate_init.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 2 additions & 1 deletion qemu/target/s390x/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c42cc0f

Please sign in to comment.