qemu-arm
[Top][All Lists]
Advanced

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

Re: [PATCH 2/7] target/arm: Handle FPU being disabled in FPCXT_NS access


From: Richard Henderson
Subject: Re: [PATCH 2/7] target/arm: Handle FPU being disabled in FPCXT_NS accesses
Date: Fri, 18 Jun 2021 08:10:56 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 6/18/21 7:10 AM, Peter Maydell wrote:
If the guest makes an FPCXT_NS access when the FPU is disabled,
one of two things happens:
  * if there is no active FP context, then the insn behaves the
    same way as if the FPU was enabled: writes ignored, reads
    same value as FPDSCR_NS
  * if there is an active FP context, then we take a NOCP
    exception

Add code to the sysreg read/write functions which emits
code to take the NOCP exception in the latter case.

At the moment this will never be used, because the NOCP checks in
m-nocp.decode happen first, and so the trans functions are never
called when the FPU is disabled.  The code will be needed when we
move the sysreg access insns to before the NOCP patterns in the
following commit.

Cc:qemu-stable@nongnu.org
Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
---

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

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