mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 21:11:02 +00:00
target-i386/FPU: a misprint in helper_fistll_ST0
There is a cut-and-paste mistake in the patch https://lists.gnu.org/archive/html/qemu-devel/2014-11/msg01657.html . It cause errors in guest work. Here is the bugfix. Backports commit 178846bdd93994c1acafe4423f99ead8bb24cf38 from qemu
This commit is contained in:
parent
3cc6b5251e
commit
58fcf87a7b
|
@ -240,7 +240,7 @@ int32_t helper_fist_ST0(CPUX86State *env)
|
|||
{
|
||||
int32_t val;
|
||||
|
||||
val = floatx80_to_int32(ST0, &env->fp_status);
|
||||
val = floatx80_to_int64(ST0, &env->fp_status);
|
||||
if (val != (int16_t)val) {
|
||||
val = -32768;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue