mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
linux-user/arm: fix compilation failures using softfloat's struct types
Add uses of the float32/float64 boxing and unboxing macros so that the ARM linux-user targets will compile with USE_SOFTFLOAT_STRUCT_TYPES enabled. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
d5138cf4a8
commit
005e1a0a02
3 changed files with 19 additions and 19 deletions
|
|
@ -1299,7 +1299,7 @@ static abi_ulong *setup_sigframe_v2_vfp(abi_ulong *regspace, CPUState *env)
|
|||
__put_user(TARGET_VFP_MAGIC, &vfpframe->magic);
|
||||
__put_user(sizeof(*vfpframe), &vfpframe->size);
|
||||
for (i = 0; i < 32; i++) {
|
||||
__put_user(env->vfp.regs[i], &vfpframe->ufp.fpregs[i]);
|
||||
__put_user(float64_val(env->vfp.regs[i]), &vfpframe->ufp.fpregs[i]);
|
||||
}
|
||||
__put_user(vfp_get_fpscr(env), &vfpframe->ufp.fpscr);
|
||||
__put_user(env->vfp.xregs[ARM_VFP_FPEXC], &vfpframe->ufp_exc.fpexc);
|
||||
|
|
@ -1588,7 +1588,7 @@ static abi_ulong *restore_sigframe_v2_vfp(CPUState *env, abi_ulong *regspace)
|
|||
return 0;
|
||||
}
|
||||
for (i = 0; i < 32; i++) {
|
||||
__get_user(env->vfp.regs[i], &vfpframe->ufp.fpregs[i]);
|
||||
__get_user(float64_val(env->vfp.regs[i]), &vfpframe->ufp.fpregs[i]);
|
||||
}
|
||||
__get_user(fpscr, &vfpframe->ufp.fpscr);
|
||||
vfp_set_fpscr(env, fpscr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue