OSDN Git Service

target/arm: Implement HCR.DC
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 24 Oct 2018 06:50:17 +0000 (07:50 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 24 Oct 2018 06:51:34 +0000 (07:51 +0100)
commit9d1bab337caf2324a233e5937f415fad4ce1641b
tree9dc3921076d845e80cdc54c81a96336045bc44b9
parentb4ab8ce98b8c482c8986785800f238d32a1578a9
target/arm: Implement HCR.DC

The HCR.DC virtualization configuration register bit has the
following effects:
 * SCTLR.M behaves as if it is 0 for all purposes except
   direct reads of the bit
 * HCR.VM behaves as if it is 1 for all purposes except
   direct reads of the bit
 * the memory type produced by the first stage of the EL1&EL0
   translation regime is Normal Non-Shareable,
   Inner Write-Back Read-Allocate Write-Allocate,
   Outer Write-Back Read-Allocate Write-Allocate.

Implement this behaviour.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20181012144235.19646-5-peter.maydell@linaro.org
target/arm/helper.c