diff options
author | Dmitry Poletaev <poletaev-qemu@yandex.ru> | 2015-07-08 12:48:40 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-07-24 13:57:45 +0200 |
commit | 178846bdd93994c1acafe4423f99ead8bb24cf38 (patch) | |
tree | 0ea649666ed85a66ae75b57a160e4bd2a83d8da9 | |
parent | d274e07c6df4cc8207b01892ff6f81118ea6083c (diff) |
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.
Signed-off-by: Dmitry Poletaev <poletaev-qemu@yandex.ru>
Reported-by: Kirill Batuzov <batuzovk@ispras.ru>
Message-Id: <2692911436348920@web2m.yandex.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | target-i386/fpu_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/fpu_helper.c b/target-i386/fpu_helper.c index 280adbac50..1f954e0c5c 100644 --- a/target-i386/fpu_helper.c +++ b/target-i386/fpu_helper.c @@ -272,7 +272,7 @@ int64_t helper_fistll_ST0(CPUX86State *env) old_exp_flags = get_float_exception_flags(&env->fp_status); set_float_exception_flags(0, &env->fp_status); - val = floatx80_to_int32(ST0, &env->fp_status); + val = floatx80_to_int64(ST0, &env->fp_status); if (get_float_exception_flags(&env->fp_status) & float_flag_invalid) { val = 0x8000000000000000ULL; } |