qemu-arm
[Top][All Lists]
Advanced

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

Re: [PATCH 7/7] target/arm: Honour VTCR_EL2 bits in Secure EL2


From: Richard Henderson
Subject: Re: [PATCH 7/7] target/arm: Honour VTCR_EL2 bits in Secure EL2
Date: Fri, 15 Jul 2022 04:55:12 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

On 7/14/22 18:53, Peter Maydell wrote:
In regime_tcr() we return the appropriate TCR register for the
translation regime.  For Secure EL2, we return the VSTCR_EL2 value,
but in this translation regime some fields that control behaviour are
in VTCR_EL2.  When this code was originally written (as the comment
notes), QEMU didn't care about any of those fields, but we have since
added support for features such as LPA2 which do need the values from
those fields.

Synthesize a TCR value by merging in the relevant VTCR_EL2 fields to
the VSTCR_EL2 value.

Resolves:https://gitlab.com/qemu-project/qemu/-/issues/1103
Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
---
  target/arm/cpu.h       | 19 +++++++++++++++++++
  target/arm/internals.h | 22 +++++++++++++++++++---
  2 files changed, 38 insertions(+), 3 deletions(-)

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

r~



reply via email to

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