Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06a29e42 authored by Michael Neuling's avatar Michael Neuling Committed by Alexander Graf
Browse files

KVM: PPC: Book3S HV: Add register name when loading toc



Add 'r' to register name r2 in kvmppc_hv_enter.

Also update comment at the top of kvmppc_hv_enter to indicate that R2/TOC is
non-volatile.

Signed-off-by: default avatarMichael Neuling <mikey@neuling.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 2b2695a8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -355,6 +355,7 @@ kvmppc_hv_entry:
	 * MSR = ~IR|DR
	 * R13 = PACA
	 * R1 = host R1
	 * R2 = TOC
	 * all other volatile GPRS = free
	 */
	mflr	r0
@@ -503,7 +504,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ARCH_207S)
toc_tlbie_lock:
	.tc	native_tlbie_lock[TC],native_tlbie_lock
	.previous
	ld	r3,toc_tlbie_lock@toc(2)
	ld	r3,toc_tlbie_lock@toc(r2)
#ifdef __BIG_ENDIAN__
	lwz	r8,PACA_LOCK_TOKEN(r13)
#else