mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 11:38:11 +00:00
removed ifdef for x64 in fpu saving
This commit is contained in:
parent
e1ab761e8a
commit
6aa2b73bea
1 changed files with 19 additions and 24 deletions
|
@ -986,7 +986,7 @@ void helper_fstenv(CPUX86State *env, target_ulong ptr, int data32)
|
|||
}
|
||||
}
|
||||
}
|
||||
#ifdef TARGET_X86_64
|
||||
|
||||
// DFLAG enum: tcg.h, case here to int
|
||||
if (env->hflags & HF_CS64_MASK) {
|
||||
cpu_stl_data(env, ptr, env->fpuc);
|
||||
|
@ -996,11 +996,7 @@ void helper_fstenv(CPUX86State *env, target_ulong ptr, int data32)
|
|||
cpu_stl_data(env, ptr + 20, 0); /* fpcs */
|
||||
cpu_stl_data(env, ptr + 24, 0); /* fpoo */
|
||||
cpu_stl_data(env, ptr + 28, 0); /* fpos */
|
||||
}
|
||||
#endif
|
||||
if (!(env->hflags & HF_CS64_MASK))
|
||||
{
|
||||
if (data32) {
|
||||
} else if (data32) {
|
||||
/* 32 bit */
|
||||
cpu_stl_data(env, ptr, env->fpuc);
|
||||
cpu_stl_data(env, ptr + 4, fpus);
|
||||
|
@ -1019,7 +1015,6 @@ void helper_fstenv(CPUX86State *env, target_ulong ptr, int data32)
|
|||
cpu_stw_data(env, ptr + 10, 0);
|
||||
cpu_stw_data(env, ptr + 12, 0);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue