On 4/16/19 5:57 AM, Peter Maydell wrote:
> The M-profile FPCCR.ASPEN bit indicates that automatic floating-point
> context preservation is enabled. Before executing any floating-point
> instruction, if FPCCR.ASPEN is set and the CONTROL FPCA/SFPA bits
> indicate that there is no active floating point context then we
> must create a new context (by initializing FPSCR and setting
> FPCA/SFPA to indicate that the context is now active). In the
> pseudocode this is handled by ExecuteFPCheck().
> 
> Implement this with a new TB flag which tracks whether we
> need to create a new FP context.
> 
> Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>
> ---
>  target/arm/cpu.h       |  2 ++
>  target/arm/translate.h |  1 +
>  target/arm/helper.c    | 13 +++++++++++++
>  target/arm/translate.c | 29 +++++++++++++++++++++++++++++
>  4 files changed, 45 insertions(+)

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


r~


Reply via email to