qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 0/3] Fix mtfsf, mtfsfi and mtfsb1 bug


From: Cédric Le Goater
Subject: Re: [PATCH v4 0/3] Fix mtfsf, mtfsfi and mtfsb1 bug
Date: Wed, 15 Dec 2021 17:33:15 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0

On 12/1/21 17:38, Lucas Mateus Castro (alqotel) wrote:
The instructions mtfsf, mtfsfi and mtfsb1, when called, fail to set the FI
bit (bit 46 in the FPSCR) and can set to 1 the reserved bit 52 of the
FPSCR, as reported in https://gitlab.com/qemu-project/qemu/-/issues/266
(although the bug report is only for mtfsf, the bug applies to mtfsfi and
mtfsb1 as well).

These instructions also fail to throw an exception when the exception
and enabling bits are set, this can be tested by adding
'prctl(PR_SET_FPEXC, PR_FP_EXC_PRECISE);' before the __builtin_mtfsf
call in the test case of the bug report.

These patches aim to fix these issues.


Applied to ppc-next.

Thanks,

C.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]