qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH v2 0/2] target-arm: Fix arm_el_is_aa64() function to


From: Sergey Sorokin
Subject: [Qemu-devel] [PATCH v2 0/2] target-arm: Fix arm_el_is_aa64() function to support EL2 and EL3
Date: Wed, 2 Sep 2015 18:39:00 +0300

Function arm_el_is_aa64() was fixed to support EL2 and EL3.
It is needed for a future support of EL2 and/or EL3,
and 32 bit EL1/EL2 support for ARMv8 cpu.
ARM_FEATURE_AARCH64 flag means that the highest exception level is
in AArch64 state. The state of lower exception levels is controlled
by the HCR_EL2.RW, SCR_EL3.RW and SCR_EL3.NS bits.
If EL2 or EL3 is not permitted by the appropriate ARM_FEATURE flag,
then the function arm_el_is_aa64() aborts on an attempt to get
the bitness of this EL. So we need to be sure that EL passed to
the function is enabled. Therefore some conditional statements was
slightly changed to check it.

Signed-off-by: Sergey Sorokin <address@hidden>

Sergey Sorokin (2):
  target-arm: Fix default_exception_el() function for the case when EL3
    is not supported
  target-arm: Fix arm_el_is_aa64() function to support EL2 and EL3

 hw/arm/boot.c              |  4 ++++
 target-arm/cpu.c           | 59 ++++++++++++++++++++++++++++++++++++++++++++++
 target-arm/cpu.h           | 51 +++++++++++++++++++++++++++------------
 target-arm/helper.c        | 23 +++++++++++++++++-
 target-arm/machine.c       |  5 ++++
 target-arm/translate-a64.c |  6 ++++-
 target-arm/translate.c     |  6 ++++-
 target-arm/translate.h     |  7 ++++--
 8 files changed, 141 insertions(+), 20 deletions(-)

-- 
1.9.3




reply via email to

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