summaryrefslogtreecommitdiffstats
path: root/arch/sh/configs/sh7785lcr_32bit_defconfig
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2015-10-28 12:00:00 +0000
committerMarc Zyngier <marc.zyngier@arm.com>2016-02-29 18:34:16 +0000
commit915ccd1dbf21e0621fb9415ad76e5c2b31ec137a (patch)
treeda64772608b497767c7b265c4df8493773a184dc /arch/sh/configs/sh7785lcr_32bit_defconfig
parentcedbb8b78c4f09f0d4519d5d35519b64487f1f0a (diff)
downloadtalos-obmc-linux-915ccd1dbf21e0621fb9415ad76e5c2b31ec137a.tar.gz
talos-obmc-linux-915ccd1dbf21e0621fb9415ad76e5c2b31ec137a.zip
arm64: KVM: VHE: Introduce unified system register accessors
VHE brings its own bag of new system registers, or rather system register accessors, as it define new ways to access both guest and host system registers. For example, from the host: - The host TCR_EL2 register is accessed using the TCR_EL1 accessor - The guest TCR_EL1 register is accessed using the TCR_EL12 accessor Obviously, this is confusing. A way to somehow reduce the complexity of writing code for both ARMv8 and ARMv8.1 is to use a set of unified accessors that will generate the right sysreg, depending on the mode the CPU is running in. For example: - read_sysreg_el1(tcr) will use TCR_EL1 on ARMv8, and TCR_EL12 on ARMv8.1 with VHE. - read_sysreg_el2(tcr) will use TCR_EL2 on ARMv8, and TCR_EL1 on ARMv8.1 with VHE. We end up with three sets of accessors ({read,write}_sysreg_el[012]) that can be directly used from C code. We take this opportunity to also add the definition for the new VHE sysregs. Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/sh/configs/sh7785lcr_32bit_defconfig')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud