mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-06 22:47:41 -07:00
target/arm: Use fp_status_a64 or fp_status_a32 in is_ebf()
In is_ebf(), we might be called for A64 or A32, but we have the CPUARMState* so we can select fp_status_a64 or fp_status_a32 accordingly. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
57bd2f30ff
commit
75df4e8609
1 changed files with 1 additions and 1 deletions
|
|
@ -2808,7 +2808,7 @@ bool is_ebf(CPUARMState *env, float_status *statusp, float_status *oddstatusp)
|
|||
*/
|
||||
bool ebf = is_a64(env) && env->vfp.fpcr & FPCR_EBF;
|
||||
|
||||
*statusp = env->vfp.fp_status;
|
||||
*statusp = is_a64(env) ? env->vfp.fp_status_a64 : env->vfp.fp_status_a32;
|
||||
set_default_nan_mode(true, statusp);
|
||||
|
||||
if (ebf) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue