Re: [PATCH] target/alpha: Don't corrupt error_code with unknown softfloat flags

2025-02-11 Thread Richard Henderson
On 2/11/25 05:06, Peter Maydell wrote: In do_cvttq() we set env->error_code with what is supposed to be a set of FPCR exception bit values. However, if the set of float exception flags we get back from softfloat for the conversion includes a flag which is not one of the three we expect here (inv

Re: [PATCH] target/alpha: Don't corrupt error_code with unknown softfloat flags

2025-02-11 Thread Philippe Mathieu-Daudé
On 11/2/25 14:06, Peter Maydell wrote: In do_cvttq() we set env->error_code with what is supposed to be a set of FPCR exception bit values. However, if the set of float exception flags we get back from softfloat for the conversion includes a flag which is not one of the three we expect here (inv

[PATCH] target/alpha: Don't corrupt error_code with unknown softfloat flags

2025-02-11 Thread Peter Maydell
In do_cvttq() we set env->error_code with what is supposed to be a set of FPCR exception bit values. However, if the set of float exception flags we get back from softfloat for the conversion includes a flag which is not one of the three we expect here (invalid_cvti, invalid, inexact) then we will