* [Qemu-devel] [PATCH] target-i386/FPU: a misprint in helper_fistll_ST0
@ 2015-07-08 9:48 Dmitry Poletaev
2015-07-23 21:59 ` Aurelien Jarno
0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Poletaev @ 2015-07-08 9:48 UTC (permalink / raw)
To: QEMU Developers
There is a misprint 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.
From: Dmitry Poletaev <poletaev-qemu@yandex.ru>
Signed-off-by: Dmitry Poletaev <poletaev-qemu@yandex.ru>
Reported-by: Kirill Batuzov <batuzovk@ispras.ru>
---
target-i386/fpu_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target-i386/fpu_helper.c b/target-i386/fpu_helper.c
index fc25a03..fcf400d 100644
--- a/target-i386/fpu_helper.c
+++ b/target-i386/fpu_helper.c
@@ -273,7 +273,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;
}
--
1.8.4.msysgit.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] target-i386/FPU: a misprint in helper_fistll_ST0
2015-07-08 9:48 [Qemu-devel] [PATCH] target-i386/FPU: a misprint in helper_fistll_ST0 Dmitry Poletaev
@ 2015-07-23 21:59 ` Aurelien Jarno
0 siblings, 0 replies; 2+ messages in thread
From: Aurelien Jarno @ 2015-07-23 21:59 UTC (permalink / raw)
To: Dmitry Poletaev
Cc: Paolo Bonzini, QEMU Developers, Eduardo Habkost,
Richard Henderson
On 2015-07-08 12:48, Dmitry Poletaev wrote:
> There is a misprint 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.
>
> From: Dmitry Poletaev <poletaev-qemu@yandex.ru>
> Signed-off-by: Dmitry Poletaev <poletaev-qemu@yandex.ru>
> Reported-by: Kirill Batuzov <batuzovk@ispras.ru>
>
> ---
> target-i386/fpu_helper.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target-i386/fpu_helper.c b/target-i386/fpu_helper.c
> index fc25a03..fcf400d 100644
> --- a/target-i386/fpu_helper.c
> +++ b/target-i386/fpu_helper.c
> @@ -273,7 +273,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;
> }
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Adding the maintainers of target-i386 in the loop so they might pick-up
the patch for 2.4.
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://www.aurel32.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-23 21:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-08 9:48 [Qemu-devel] [PATCH] target-i386/FPU: a misprint in helper_fistll_ST0 Dmitry Poletaev
2015-07-23 21:59 ` Aurelien Jarno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).