aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kvm
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2018-01-29 11:59:57 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2018-02-06 22:53:21 +0000
commitfa0465fc07c2f9f47bd1198ab368d341bd7c7e4e (patch)
tree1015b0bb0f69b0b88e21af1c15924c7102871321 /arch/arm64/kvm
parentarm64: Force KPTI to be disabled on Cavium ThunderX (diff)
downloadlinux-dev-fa0465fc07c2f9f47bd1198ab368d341bd7c7e4e.tar.xz
linux-dev-fa0465fc07c2f9f47bd1198ab368d341bd7c7e4e.zip
arm64: assembler: Change order of macro arguments in phys_to_ttbr
Since AArch64 assembly instructions take the destination register as their first operand, do the same thing for the phys_to_ttbr macro. Acked-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kvm')
-rw-r--r--arch/arm64/kvm/hyp-init.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/hyp-init.S b/arch/arm64/kvm/hyp-init.S
index e086c6eff8c6..5aa9ccf6db99 100644
--- a/arch/arm64/kvm/hyp-init.S
+++ b/arch/arm64/kvm/hyp-init.S
@@ -63,7 +63,7 @@ __do_hyp_init:
cmp x0, #HVC_STUB_HCALL_NR
b.lo __kvm_handle_stub_hvc
- phys_to_ttbr x0, x4
+ phys_to_ttbr x4, x0
msr ttbr0_el2, x4
mrs x4, tcr_el1